public override void OnMissionModeChange(MissionMode oldMissionMode, bool atStart) { base.OnMissionModeChange(oldMissionMode, atStart); if (Utils.IsStartOfBattle(oldMissionMode, Mission.Mode)) { BattleStartEvent?.Invoke(); IsActivated = true; } else if (Utils.IsStartofSiege(oldMissionMode, Mission.Mode)) { PlayerAgent = Agent.Main; IsActivated = true; SiegeBattleStartEvent?.Invoke(); } else if (Utils.IsStartofHideoutBattle(oldMissionMode, Mission.Mode)) { PlayerAgent = Agent.Main; IsActivated = true; HideoutBattleStartEvent?.Invoke(); } else if (Utils.IsEndOfHideoutConversation(oldMissionMode, Mission.Mode)) { IsActivated = true; } else { IsActivated = false; } }
/// <summary> /// 战斗开始 /// </summary> public void BattleStart() { BattleStartEvent?.Invoke(); }