コード例 #1
0
 public void ResetGame()
 {
     ColorPallet.Clear();
     GamePlay.ClearCounters();
     GamePlay.ZeroCounter();
     GamePlay.ClearVictory();
     SaveData.reset();
     data.CallReset();
     Application.LoadLevel(Application.loadedLevel);
 }
コード例 #2
0
    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;
    }