public void Restart() { SceneManager.LoadScene("Hub"); CharacterSelection.SetDisplay(); TimerManager.GameRestarted(); CoinLevelManager.ResetCoins(); CoinLevelManager.ResetLevels(); Destroy(PlayerSingleton.player); }
void Start() { _player = PlayerSingleton.player; _coinManager = this.gameObject.GetComponent <CoinLevelManager>(); }