public void LevelReset() { // re-enable edge worldBounds.EnableCollider(); /*obstacleManager.ClearObstacles();*/ // reset enemy and ball manager ballManager.Reset(); enemyManager.Reset(); progressPie.SetProgress(0); }
public void Replay() { if (startOver) { currentLevel = Mathf.Clamp(currentLevel - 1, 0, int.MaxValue); ballGenerator.Reset(); } SwipeManager.instance.SWIPE_PERCENTAGE = 0.5f; replayButton.gameObject.SetActive(false); sceneStateText.SetText(""); Play(); }