Exemplo n.º 1
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else if (_instance != this)
     {
         Destroy(_instance);
     }
 }
Exemplo n.º 2
0
 public override void Start()
 {
     base.Start();
     _clear = GameObject.Find("GameClear");
     _over  = GameObject.Find("Gameover");
     _start = GameObject.Find("GameStart");
     _clear.SetActive(false);
     _over.SetActive(false);
     factory        = FindObjectOfType <FactoryMethodUse>();
     KillCount      = 0;
     Stage_num      = 1;
     Time.timeScale = 0;
 }