using FSM; using ZXKFramework; namespace DongWuYiXue.DaoNiaoShu { public class TuMoLiDuoKaYinState : FsmState { public override void OnStateEnter() { base.OnStateEnter(); this.Log("进入涂抹利多卡因状态"); fsm.ShowCamera("涂抹利多卡因1_Camera"); fsm.ShowTip(0); fsm.PlayBgm(0); fsm.Light_EnableInteraction("利多卡因凝胶"); fsm.InteractionDown("利多卡因凝胶", c => { if (fsm.main_gameModel.modeType == ModeType.ShiXun) { fsm.AddScore(3, 0); } fsm.Unlight_DisableInteraction("利多卡因凝胶"); fsm.ShowCamera("涂抹利多卡因2_Camera"); fsm.PlayClip("涂抹利多卡因_TimeLine", () => { fsm.nextState = true; }); }); } public override void OnStateStay() { base.OnStateStay(); } public override void OnStateExit() { base.OnStateExit(); fsm.Unlight_DisableInteraction("利多卡因凝胶"); fsm.nextState = false; } } }