Exemplo n.º 1
0
 protected override void Init()
 {
     if(_instance == null)
     {
         _instance = this;
     }
     else if(_instance != this)
     {
         Destroy(this.gameObject);
     }
     base.Init ();
     _continue = GameObject.Find("Win_Continue").GetComponent<Button>();
     _state = MenuManager.MenuState.Win;
 }
Exemplo n.º 2
0
 protected override void Init()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else if (_instance != this)
     {
         Destroy(this.gameObject);
     }
     base.Init();
     _continue = GameObject.Find("Win_Continue").GetComponent <Button>();
     _state    = MenuManager.MenuState.Win;
 }