52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using FSM;
|
|
namespace YiLiao.JingMaiLiuZhiZhen
|
|
{
|
|
public class BeiShuYeTieState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.ShowCamera("BeiShuYeTieState_Camera");
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.Light_EnableInteraction("医用胶布");
|
|
fsm.ShowArrow("请点击医用胶布","医用胶布");
|
|
fsm.ShowTipBtn(() => {
|
|
fsm.Light_EnableInteraction("医用胶布", true);
|
|
fsm.ShowArrow("请点击医用胶布", "医用胶布",0, 0, 5, true);
|
|
},2);
|
|
|
|
fsm.InteractionDown("医用胶布", obj => {
|
|
fsm.HideTipBtn();
|
|
fsm.AddScore(1, 1);
|
|
fsm.HideArrow();
|
|
fsm.Unlight_DisableInteraction("医用胶布");
|
|
fsm.InteractionDown("医用胶布",null);
|
|
fsm.PlayClip("备输液贴", () => {
|
|
fsm.Show_Light_EnableInteraction("透明敷贴",true);
|
|
fsm.ShowArrow("请点击透明敷贴", "透明敷贴", 0, 2, 5, true);
|
|
});
|
|
});
|
|
|
|
fsm.InteractionDown("透明敷贴", obj => {
|
|
if(fsm.main_gameModel.modeType == ZXKFramework.ModeType.ShiXun)
|
|
{
|
|
fsm.AddScore(1, 2);
|
|
}
|
|
|
|
fsm.HideArrow();
|
|
fsm.Hide_Unlight_DisableInteraction("透明敷贴");
|
|
fsm.InteractionDown("透明敷贴",null);
|
|
fsm.PlayClip("备输液贴2", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState= false;
|
|
}
|
|
}
|
|
}
|