2026-04-01 19:15:20 +08:00

47 lines
1.7 KiB
C#

using FSM;
namespace YiLiao.XinFeiTingZhen
{
public class LeiGu11_12 : FsmState<FSMManager>
{
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.ShowTip(0);
fsm.PlayBgm(0);
GameManager.Instance.multiObjectController.RotateAllTo180(() => {
fsm.ShowArrow("点击“11-12肋骨”", "肋骨11-12左", 0, 999);
fsm.Light_EnableInteraction("肋骨11-12左");
fsm.Light_EnableInteraction("肋骨11-12右");
});
fsm.InteractionDown("肋骨11-12左", args => {
fsm.Unlight_DisableInteraction("肋骨11-12左");
fsm.InteractionDown("肋骨11-12左", null);
fsm.Unlight_DisableInteraction("肋骨11-12右");
fsm.InteractionDown("肋骨11-12右", null);
fsm.AddScore(0, 0.5f);
fsm.HideArrow();
fsm.PlayClip("肋骨11-12动画", () => {
fsm.nextState = true;
});
});
fsm.InteractionDown("肋骨11-12右", args => {
fsm.Unlight_DisableInteraction("肋骨11-12左");
fsm.InteractionDown("肋骨11-12左", null);
fsm.Unlight_DisableInteraction("肋骨11-12右");
fsm.InteractionDown("肋骨11-12右", null);
fsm.AddScore(0, 0.5f);
fsm.HideArrow();
fsm.PlayClip("肋骨11-12动画", () => {
fsm.nextState = true;
});
});
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.nextState = false;
}
}
}