Esempio n. 1
0
    private void OnRunStateChange(RUNSTATE state)
    {
        switch (state)
        {
        case RUNSTATE.PRERUN:
            GotToMenu("MainMenu");
            break;

        case RUNSTATE.INRUN:
            GotToMenu("HUD");
            break;

        case RUNSTATE.POSTRUN:
            GotToMenu("PostRun");
            break;

        default:
            break;
        }
    }
Esempio n. 2
0
 /// <summary>
 /// 游戏结束
 /// </summary>
 public void GameEnd()
 {
     isPlaying = false;
     runSpeed  = 10.0f;
     runState  = _PlayerControl.RUNSTATE.STOP;
 }