45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
using FSM;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class LeiGu1_7 : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowArrow("点击“1-7肋骨”", "肋骨1-7左", 0, 999);
|
|
fsm.Light_EnableInteraction("肋骨1-7左");
|
|
fsm.Light_EnableInteraction("肋骨1-7右");
|
|
fsm.InteractionDown("肋骨1-7左", args => {
|
|
fsm.Unlight_DisableInteraction("肋骨1-7左");
|
|
fsm.InteractionDown("肋骨1-7左", null);
|
|
fsm.Unlight_DisableInteraction("肋骨1-7右");
|
|
fsm.InteractionDown("肋骨1-7右", null);
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.HideArrow();
|
|
fsm.PlayClip("肋骨1-7动画", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
fsm.InteractionDown("肋骨1-7右", args => {
|
|
fsm.Unlight_DisableInteraction("肋骨1-7左");
|
|
fsm.InteractionDown("肋骨1-7左", null);
|
|
fsm.Unlight_DisableInteraction("肋骨1-7右");
|
|
fsm.InteractionDown("肋骨1-7右", null);
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.HideArrow();
|
|
fsm.PlayClip("肋骨1-7动画", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|