Exemplo n.º 1
0
 public void ResetGame()
 {
     mapSystem = GameObject.FindWithTag("GameController").GetComponent <MapSystem1>();
     if (mapSystem)
     {
         mapSystem.ResetGame();
     }
     Close();
 }
Exemplo n.º 2
0
 void Update()
 {
     if (!battleSystem && !mapSystem)
     {
         battleSystem = GameObject.FindWithTag("GameController").GetComponent <BattleSystem>();
         mapSystem    = GameObject.FindWithTag("GameController").GetComponent <MapSystem1>();
     }
     if (battleSystem)
     {
         battleSystem.fade = this;
     }
     if (mapSystem)
     {
         mapSystem.fade = this;
     }
 }