2025-09-26 17:32:51 +08:00

41 lines
1.4 KiB
C#

using FSM;
using UnityEngine;
using ZXKFramework;
namespace YiLiao.XinFeiTingZhen
{
public class FeiPaoHuXiYinState : FsmState<FSMManager>
{
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;
}
}
}