|
@@ -0,0 +1,45 @@
|
|
|
|
+using Common.Utility.CombatEvent;
|
|
|
|
+using Fort23.Core;
|
|
|
|
+using GameLogic.Combat.CombatTool;
|
|
|
|
+using GameLogic.Combat.CombatType;
|
|
|
|
+
|
|
|
|
+namespace GameLogic.Combat.CombatGuide
|
|
|
|
+{
|
|
|
|
+ public class Guide_Boss : GuideBasic
|
|
|
|
+ {
|
|
|
|
+ protected bool isTrgger;
|
|
|
|
+
|
|
|
|
+ protected override void ProUpdate()
|
|
|
|
+ {
|
|
|
|
+ Trigger();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ protected void Trigger()
|
|
|
|
+ {
|
|
|
|
+ if (isTrgger)
|
|
|
|
+ {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ LevelBattleCombatType levelBattleCombatType =
|
|
|
|
+ (LevelBattleCombatType)CombatController.currActiveCombat.CombatTypeBasic;
|
|
|
|
+ if (levelBattleCombatType.isBossCombat && !CombatController.currActiveCombat.isStopAi)
|
|
|
|
+ {
|
|
|
|
+ isTrgger = true;
|
|
|
|
+
|
|
|
|
+ CombatController.currActiveCombat.isStopAi = true;
|
|
|
|
+ ShowDialogueEventData showDialogueEventData = ShowDialogueEventData.Create();
|
|
|
|
+ showDialogueEventData.finish = delegate
|
|
|
|
+ {
|
|
|
|
+ CombatController.currActiveCombat.isStopAi = false;
|
|
|
|
+ AccountFileInfo.Instance.playerData.combatGuideIndex = 2;
|
|
|
|
+ AccountFileInfo.Instance.SavePlayerData();
|
|
|
|
+ CombatGuideManager.Instance.NextGuide();
|
|
|
|
+
|
|
|
|
+ };
|
|
|
|
+ showDialogueEventData.dialogueMessaga = new string[] {".....", "发生了什么事....","前方好像出现了超强怪物,大家做好准备。" };
|
|
|
|
+ showDialogueEventData.messageShowType = ShowDialogueEventData.MessageShowType.Verbatim;
|
|
|
|
+ EventManager.Instance.Dispatch(CustomEventType.ShowDialogue, showDialogueEventData);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|