Exemple #1
0
 void EndGame()
 {
     canScore = false;
     //canSpawn = false;
     gameRunning = false;
     //ShootMissle.canShoot = false;
     PowerUpActivation.NullOrderedBarsList();
     PlayerPrefs.SetInt("Loot", CoinScript.coinCount);
     StartCoroutine(GameEndWait());
 }
 public void RestartGame()
 {
     PowerUpActivation.NullOrderedBarsList(); // null powerup cooldown placers
     ctrlScript.resetMoveSpeed();
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     ShootMissle.canShoot = true;
     //spellButton.SetEnabled();
     HealthBarScript.shieldPoints   = 0;
     HealthBarScript.canBreakShield = false;
     CoinScript.coinCount           = 0;
     ctrlScript.cooldown            = 3.0f;
     ctrlScript.savedSpeed          = 0.5f;
     Time.timeScale         = 1f;
     ctrlScript.canSpawn    = true;
     ctrlScript.gameRunning = true;
 }