示例#1
0
        public void Restart()
        {
            _player.ResetValues();
            enemies.Restart();
            towersManager.Restart();

            Time.timeScale = 1;
        }
示例#2
0
 public void restart()
 {
     firsLoad = false;
     enemiesManager.Restart();
     playerManager.restart();
     CurrentGameState = GameState.Playing;
     clock.Reset();
     UpgradeBar.spawnUpgradeBar = false;
     EndTime = 40 * 1000;
 }
示例#3
0
    private void LoseProcess()
    {
        ChangeGameState(GameState.Lose);
        TrySetScore((int)player.MaxHeight);

        _currentSessionScore = (int)player.MaxHeight;

        player.Restart();
        platformsManager.Restart();
        cameraScript.Restart();
        enemiesManager.Restart();
    }