public void Replay() { SoundEffectManager.instance.PlayButtonClickSound(); candy = PlayerPrefs.GetInt("Candy", 0); score = 0; MSceneManager.GameGo(); }
public void GameGo() { if (SoundEffectManager.instance != null) { SoundEffectManager.instance.PlayButtonClickSound(); } DontDestroyOnLoad(this.gameObject); MSceneManager.GameGo(); }