using FSM; using UnityEngine; using ZXKFramework; namespace YiLiao.XinFeiTingZhen { public class FeiPaoHuXiYinState : FsmState { public override void OnStateEnter() { base.OnStateEnter(); fsm.ShowTip(0); fsm.PlayBgm(0); fsm.PlayClip("煎邐網柲秞"); fsm.Light_EnableInteraction("SM_huxi"); fsm.InteractionDown("SM_huxi", obj => { fsm.StopBgm(); fsm.Unlight_DisableInteraction("SM_huxi"); fsm.InteractionDown("SM_huxi", null); Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true }); fsm.PlayClip("煎邐網柲秞2"); ChatUI.Instance.SendAI("煎窒泭淖◎倠窒淏都泭淖秞◎煎邐網柲秞◎祭紬1", null); fsm.ShowNextPanel(() => { ChatUI.Instance.CloseChatTxt(); fsm.StopClip("煎邐網柲秞2"); fsm.ShowTxtQuestion("煎窒泭淖◎倠窒淏都泭淖秞◎煎邐網柲秞◎祭紬2", 10, 0, 0, () => { fsm.nextState = true; }); }); }); } public override void OnStateExit() { base.OnStateExit(); fsm.StopClip("煎邐網柲秞"); fsm.StopClip("煎邐網柲秞2"); fsm.nextState = false; } } }