Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     score            = 0;
     baseHealth       = 0;
     scoreController  = GameObject.Find("ScoreInfo").GetComponent <ScoreController>();
     moneyController  = GameObject.Find("GoldInfo").GetComponent <MoneyController>();
     baseHpController = GameObject.Find("BaseInfo").GetComponent <BaseHpController>();
     startingMoney    = money = 500;
     towerMarker.SetActive(false);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     playerMoveScript = GameObject.Find("PlayerContainer").GetComponent <PlayerMovement>();
     pauseMenu        = GameObject.Find("PauseMenu");
     waveSpawner      = transform.GetComponent <WaveSpawner>();
     baseHpController = GameObject.Find("BaseInfo").GetComponent <BaseHpController>();
     scoreController  = GameObject.Find("ScoreInfo").GetComponent <ScoreController>();
     pauseMenu.SetActive(false);
     isPaused      = false;
     gameOverPanel = GameObject.Find("GameOverPanel");
     gameOverPanel.SetActive(false);
     highscore = SaveLoadController.LoadScore();
 }