using FSM; using ZXKFramework; namespace DongWuYiXue.DaoNiaoShu { public class TuMoKangShengSuRuanGaoState : FsmState { public override void OnStateEnter() { base.OnStateEnter(); this.Log("进入涂抹抗生素软膏状态"); fsm.ShowCamera("涂抹抗生素软膏1_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("抗生素软膏", c => { fsm.HideTipBtn(); if (fsm.main_gameModel.modeType == ModeType.ShiXun) { fsm.AddScore(3, 0); } if (fsm.main_gameModel.modeType == ModeType.KaoHe) { fsm.AddScore(3, 0); } fsm.HideArrow(); fsm.InteractionDown("抗生素软膏", null); 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.HideTipBtn(); fsm.HideArrow(); fsm.InteractionDown("抗生素软膏", null); fsm.Unlight_DisableInteraction("抗生素软膏"); fsm.nextState = false; } } }