using FSM; using UnityEngine; namespace YiLiao.JingMaiLiuZhiZhen { public class GuanBiTiaoJieJiaState : FsmState { public override void OnStateEnter() { base.OnStateEnter(); fsm.ShowCamera("GuanBiTiaoJieJiaState_Camera"); fsm.ShowTip(0); fsm.PlayBgm(0); fsm.Light_EnableInteraction("关闭调节夹_滑轮"); fsm.ShowArrow(new Vector2(-140f, 10f),2,0); fsm.ShowTipBtn(() => { fsm.Light_EnableInteraction("关闭调节夹_滑轮",true); fsm.ShowArrow(new Vector2(-140f, 10f), 2, 0, 5, true); },0); fsm.InteractionStay("关闭调节夹_滑轮", args => { if (args.GetComponent().value.Equals(1)) { fsm.HideTipBtn(); fsm.HideArrow(); fsm.AddScore(2, 1); fsm.Unlight_DisableInteraction("关闭调节夹_滑轮"); fsm.InteractionStay("关闭调节夹_滑轮", null); fsm.PlayClip("关闭调节夹", () => { fsm.nextState = true; }); } }); } public override void OnStateExit() { base.OnStateExit(); fsm.nextState = false; } } }