예제 #1
0
 public override void StateEnd()
 {
     gameMainProgram.audioMgr.StopMusic();
     gameMainProgram.gameDataMgr.Save(gameMainProgram.playerMgr.CurrentPlayer);  // Save
     // State切换时,GameMainProgram及其各个Mgr并没有销毁,而是调用Release,然后重新Initialize
     gameMainProgram.Release();
 }
예제 #2
0
 public override void StateEnd()
 {
     // 切换场景时,可能NPC对话仍未结束
     gameMainProgram.eventMgr.InvokeEvent(EventName.DialogActionComplete);
     gameMainProgram.Release();
 }
예제 #3
0
 public override void StateEnd()
 {
     // State切换时,GameMainProgram及其各个Mgr并没有销毁,而是调用Release,然后重新Initialize
     gameMainProgram.Release();
 }