38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using FSM;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class HouZhengZhongXian : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
|
|
GameManager.Instance.multiObjectController.RotateAllTo180(() => {
|
|
fsm.ShowArrow("点击“椎骨棘突”", "椎骨棘突", 0, 999);
|
|
fsm.Light_EnableInteraction("椎骨棘突");
|
|
});
|
|
|
|
fsm.InteractionDown("椎骨棘突", obj => {
|
|
fsm.HideArrow();
|
|
fsm.InteractionDown("椎骨棘突", null);
|
|
fsm.Unlight_DisableInteraction("椎骨棘突");
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.PlayClip("后正中线动画", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
public override void OnStateStay()
|
|
{
|
|
base.OnStateStay();
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|