public void ResetGame() { ColorPallet.Clear(); GamePlay.ClearCounters(); GamePlay.ZeroCounter(); GamePlay.ClearVictory(); SaveData.reset(); data.CallReset(); Application.LoadLevel(Application.loadedLevel); }
IEnumerator Reload() { data.IncrementData(); ColorPallet.Clear(); GamePlay.ClearCounters(); GamePlay.scoreUp(GamePlay.getCounter() * 50); async = Application.LoadLevelAsync(Application.loadedLevel); async.allowSceneActivation = false; yield return(new WaitForSeconds(5.0f)); async.allowSceneActivation = true; // yield return async; // GamePlay.CallVictory (false); GamePlay.ClearVictory(); // yield return async; }