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

38 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using FSM;
using ZXKFramework;
namespace YiLiao.XinFeiTingZhen
{
public class GanLuoYinState : 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", 12, 0, 0, () => {
fsm.nextState = true;
});
});
});
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.StopClip("¸É†ªÒô2");
fsm.nextState = true;
}
}
}