예제 #1
0
 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);
 }
예제 #2
0
 public void Restart()
 {
     CoolTimes = 3;
     scoreRecorder.Reset();
     Application.LoadLevel(Application.loadedLevelName);
     SSDirector.getInstance().currentScenceController.state = State.START;
 }
예제 #3
0
 public void Reset()
 {
     sendCnt  = 0;
     round    = 0;
     sendTime = 0;
     scoreRecorder.Reset();
 }
예제 #4
0
 public void ReStart()
 {
     running = true;
     scoreRecorder.Reset();
     diskFactory.Reset();
     round = 1;
     trial = 1;
 }
예제 #5
0
    public void reStart()
    {
        gameStop();
        round = 0;

        recorder.Reset();
        nextRound();
    }
예제 #6
0
 // 重新开始
 public void Restart()
 {
     gameState = GameState.START;
     scoreRecorder.Reset();
     currentRound = 1;
     diskNumber   = 10;
     frequency    = 2f;
 }
예제 #7
0
 public void Restart()
 {
     running = true;
     score_recorder.Reset();
     disk_factory.Reset();
     round = 1;
     trial = 0;
     HP    = 5;
 }
예제 #8
0
 //重新开始
 public void ReStart()
 {
     running = true;
     score_recorder.Reset();
     disk_factory.Reset();
     round = 1;
     trial = 1;
     //speed = 2f;
 }
예제 #9
0
 public void Restart()
 {
     isGameOver    = false;
     isGamePlaying = false;
     scoreRecorder.Reset();
     bloodRecorder.Reset();
     currentRound = 1;
     interalTime  = 2f;
 }
예제 #10
0
    private void Restart()
    {
        trial = 1;
        round = 0;

        game_over  = false;
        next_round = false;

        scoreRecorder.Reset();
        df.GetDisk(round);
    }
예제 #11
0
 public void Restart()
 {
     isGameOver    = false;
     isGamePlaying = false;
     isGameStarted = false;
     actionMode    = ActionMode.NOTSET;
     scoreRecorder.Reset();
     bloodRecorder.Reset();
     currentRound = 1;
     interalTime  = 1.3f;
 }
예제 #12
0
    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();
    }
예제 #13
0
 public void gameStart()
 {
     playing = true;
     roundControl.reset();
     scoreRecorder.Reset();
 }
 public void Restart()
 {
     scoreRecorder.Reset();
     StartGame();
 }
예제 #15
0
 public void restartAll()
 {
     stopShotDisk();
     roundCount = 0;
     score_recorder.Reset();
 }