31 lines
880 B
C#
31 lines
880 B
C#
using FSM;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class XiongGuBing : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowArrow("点击“胸骨柄”", "胸骨柄", 0, 999);
|
|
fsm.Light_EnableInteraction("胸骨柄");
|
|
fsm.InteractionDown("胸骨柄", args => {
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.Unlight_DisableInteraction("胸骨柄");
|
|
fsm.InteractionDown("胸骨柄",null);
|
|
fsm.HideArrow();
|
|
fsm.PlayClip("胸骨柄动画", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|