38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using FSM;
|
|
namespace YiLiao.JingMaiLiuZhiZhen
|
|
{
|
|
public class CheZouWuPinState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowCamera("CheZouWuPinState_Camera");
|
|
fsm.ShowArrow("点击垫枕", "垫枕放好");
|
|
fsm.Show_Light_EnableInteraction("垫枕放好");
|
|
|
|
fsm.ShowTipBtn(() => {
|
|
fsm.ShowArrow("点击垫枕", "垫枕放好",0, 0, 5, true);
|
|
fsm.Show_Light_EnableInteraction("垫枕放好", true);
|
|
},2);
|
|
|
|
fsm.InteractionDown("垫枕放好", obj => {
|
|
fsm.HideTipBtn();
|
|
fsm.AddScore(1, 1);
|
|
fsm.HideArrow();
|
|
fsm.InteractionDown("垫枕放好", null);
|
|
fsm.Hide_Unlight_DisableInteraction("垫枕放好");
|
|
fsm.PlayClip("撤走物品", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|