Example #1
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();
 }