Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 战斗开始
 /// </summary>
 public void BattleStart()
 {
     BattleStartEvent?.Invoke();
 }