Inheritance: MonoBehaviour
	// Use this for initialization
	void Start () {
        //Only allow one PauseWatcher
        if (singleton == null)
        {
            singleton = this;
        }
        else
        {
            Destroy(this);
        }

		pauseScreen.SetActive(false);
	}
Example #2
0
 // Use this for initialization
 private void Start()
 {
     Instance = this;
     gameObject.SetActive(false);
 }