private void Update() { //游戏结束 if (scoreRecorder.getScore() <= point[num] && gameState == GameState.ROUND_FINISH) { //再次初始化 currentRound = -1; round = 3; time = 0; num = 0; gameState = GameState.GAME_OVER; scoreRecorder.Reset(); } if (scoreRecorder.getScore() >= 30 && gameState == GameState.ROUND_FINISH) { //再次初始化 currentRound = -1; round = 3; time = 0; num = 0; scoreRecorder.Reset(); gameState = GameState.WIN; } //回合结束 if (actionManager.DiskNumber == 0 && gameState == GameState.RUNNING) { gameState = GameState.ROUND_FINISH; } //回合开始 if (actionManager.DiskNumber == 0 && gameState == GameState.ROUND_START) { currentRound = (currentRound + 1) % round; num++; DiskFactory df = Singleton <DiskFactory> .Instance; for (int i = 0; i < diskNumber; i++) { diskQueue.Enqueue(df.GetDisk(currentRound)); } actionManager.Throw(diskQueue); actionManager.DiskNumber = 10; gameState = GameState.RUNNING; } if (time > 0.5) { ThrowDisk(); time = 0; } else { time += Time.deltaTime; } Debug.Log(num); }
public void Restart() { CoolTimes = 3; scoreRecorder.Reset(); Application.LoadLevel(Application.loadedLevelName); SSDirector.getInstance().currentScenceController.state = State.START; }
public void Reset() { sendCnt = 0; round = 0; sendTime = 0; scoreRecorder.Reset(); }
public void ReStart() { running = true; scoreRecorder.Reset(); diskFactory.Reset(); round = 1; trial = 1; }
public void reStart() { gameStop(); round = 0; recorder.Reset(); nextRound(); }
// 重新开始 public void Restart() { gameState = GameState.START; scoreRecorder.Reset(); currentRound = 1; diskNumber = 10; frequency = 2f; }
public void Restart() { running = true; score_recorder.Reset(); disk_factory.Reset(); round = 1; trial = 0; HP = 5; }
//重新开始 public void ReStart() { running = true; score_recorder.Reset(); disk_factory.Reset(); round = 1; trial = 1; //speed = 2f; }
public void Restart() { isGameOver = false; isGamePlaying = false; scoreRecorder.Reset(); bloodRecorder.Reset(); currentRound = 1; interalTime = 2f; }
private void Restart() { trial = 1; round = 0; game_over = false; next_round = false; scoreRecorder.Reset(); df.GetDisk(round); }
public void Restart() { isGameOver = false; isGamePlaying = false; isGameStarted = false; actionMode = ActionMode.NOTSET; scoreRecorder.Reset(); bloodRecorder.Reset(); currentRound = 1; interalTime = 1.3f; }
public void Restart() { gameOver = false; scoreRecorder.Reset(); player.GetComponent <Animator>().SetBool("death", false); patrolsFactory.Reset(); coinFactory.Reset(); for (int i = 0; i < patrols.Count; i++) { actionManager.PatrolMove(patrols[i]); } coinNumberGet = 0; timeManager.Reset(); }
public void gameStart() { playing = true; roundControl.reset(); scoreRecorder.Reset(); }
public void Restart() { scoreRecorder.Reset(); StartGame(); }
public void restartAll() { stopShotDisk(); roundCount = 0; score_recorder.Reset(); }