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