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; } }
/// <summary> /// 游戏结束 /// </summary> public void GameEnd() { isPlaying = false; runSpeed = 10.0f; runState = _PlayerControl.RUNSTATE.STOP; }