void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _overallController = GameObject.Find("OverallManager").GetComponent <OverallController>();
     SetChapter();
 }