Ejemplo n.º 1
0
 public void ActivateTowerPhase()
 {
     wave++;
     WAVEHISCORE = Mathf.Max(WAVEHISCORE, wave);
     PlaceSpawners(wave * 2 + 2);
     transform.position      = new Vector3(0, transform.position.y, 0);
     titleText.enabled       = true;
     moneyDisplay.enabled    = true;
     instructionText.enabled = true;
     selectionText.enabled   = true;
     topdownCam.enabled      = true;
     phaseActive             = true;
     if (wave == 1)
     {
         HintCube cube = FindObjectOfType <HintCube>();
         if (cube != null)
         {
             cube.renderer.enabled = true;
         }
     }
     titleText.text = "Wave " + wave + "\nDefend the race track.";
 }
Ejemplo n.º 2
0
 public void DeactivateTowerPhase()
 {
     foreach (CatSpawner c in FindObjectsOfType <CatSpawner>())
     {
         c.refresh();
         c.paused = false;
     }
     titleText.enabled       = false;
     moneyDisplay.enabled    = false;
     instructionText.enabled = false;
     countdown.enabled       = false;
     selectionText.enabled   = false;
     topdownCam.enabled      = false;
     phaseActive             = false;
     if (wave == 1)
     {
         HintCube cube = FindObjectOfType <HintCube>();
         if (cube != null)
         {
             cube.renderer.enabled = false;
         }
     }
     raceManager.startRace();
 }