﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TransitionOut : MonoBehaviour {
    [SerializeField]
    ActivateOnClick activate;
    public static TransitionOut instance;
    [SerializeField]
    bool singleton;
	// Use this for initialization
	void Start () {
        if (singleton)
        {
            instance = this;
        }
	}
	
	// Update is called once per frame
	public void RunActivateSingleton () {
        instance.Activate();
	}

    public void Activate()
    {
        activate.ActivateObject();
    }
}
