30 lines
898 B
C#
Raw Normal View History

2025-09-19 17:28:05 +08:00
using FSM;
2025-09-24 09:50:39 +08:00
using UnityEngine;
2025-09-22 17:41:04 +08:00
namespace YiLiao.XinFeiTingZhen
2025-09-19 17:28:05 +08:00
{
2025-09-22 17:41:04 +08:00
public class TingZhenXinYinFangFaState : FsmState<FSMManager>
2025-09-19 17:28:05 +08:00
{
public override void OnStateEnter()
{
base.OnStateEnter();
2025-09-23 16:42:10 +08:00
fsm.PlayBgm(0);
fsm.ShowTip(0);
2025-09-24 09:50:39 +08:00
fsm.ShowArrow("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE><EFBFBD><EFBFBD>ǰ֫<C7B0><D6AB>ǰǣ<C7B0><C7A3><EFBFBD>벽", "<22><>ǰ֫", false, 0, 3);
2025-09-23 16:42:10 +08:00
fsm.Show_Light_EnableInteraction("<22><>ǰ֫");
fsm.InteractionDown("<22><>ǰ֫", obj => {
fsm.InteractionDown("<22><>ǰ֫", null);
fsm.Hide_Unlight_DisableInteraction("<22><>ǰ֫");
fsm.PlayClip("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", () => {
fsm.StopBgm();
fsm.nextState = true;
});
});
2025-09-19 17:28:05 +08:00
}
public override void OnStateExit()
{
base.OnStateExit();
2025-09-23 16:42:10 +08:00
fsm.nextState = false;
2025-09-19 17:28:05 +08:00
}
}
}