Beispiel #1
0
 public void LevelReset()
 {
     // re-enable edge
     worldBounds.EnableCollider();
     /*obstacleManager.ClearObstacles();*/
     // reset enemy and ball manager
     ballManager.Reset();
     enemyManager.Reset();
     progressPie.SetProgress(0);
 }
Beispiel #2
0
    public void Restart()
    {
        _score             = 0;
        _scoreDisplay.text = _score.ToString();

        _enemyGenerator.Reset();
        if (_weaponGenerator.Paused == true)
        {
            _weaponGenerator.Reset();
        }
        _enemyGenerator.Paused  = false;
        _weaponGenerator.Paused = false;
    }