public void LevelReset() { // re-enable edge worldBounds.EnableCollider(); /*obstacleManager.ClearObstacles();*/ // reset enemy and ball manager ballManager.Reset(); enemyManager.Reset(); progressPie.SetProgress(0); }
public void Restart() { _score = 0; _scoreDisplay.text = _score.ToString(); _enemyGenerator.Reset(); if (_weaponGenerator.Paused == true) { _weaponGenerator.Reset(); } _enemyGenerator.Paused = false; _weaponGenerator.Paused = false; }