using FSM; namespace YiLiao.JingMaiLiuZhiZhen { public class FangZhiDianZhenState : FsmState { public override void OnStateEnter() { base.OnStateEnter(); fsm.ShowTip(0); fsm.PlayBgm(0); fsm.ShowCamera("FangZhiDianZhenState_Camera"); fsm.ShowArrow("اëحد×§µوصي","µوصي"); fsm.Light_EnableInteraction("µوصي"); fsm.ShowTipBtn(() => { fsm.ShowArrow("اëحد×§µوصي", "µوصي",0, 0, 5, true); fsm.Light_EnableInteraction("µوصي", true); },2); fsm.InteractionDown("µوصي", obj => { fsm.HideTipBtn(); fsm.HideArrow(); fsm.Show_Light_EnableInteraction("µوصي¸كءء´¦", true); }); fsm.InteractionUp("µوصي", obj => { fsm.Hide_Unlight_DisableInteraction("µوصي¸كءء´¦"); }); fsm.InteractionTrigger("µوصي¸كءء´¦", args => { if(args.name == "µوصي") { if(fsm.main_gameModel.modeType == ZXKFramework.ModeType.KaoHe) { fsm.AddScore(2, 1); } if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.ShiXun) { fsm.AddScore(1, 1); } fsm.Hide_Unlight_DisableInteraction("µوصي¸كءء´¦"); fsm.Hide_Unlight_DisableInteraction("µوصي"); fsm.InteractionTrigger("µوصي¸كءء´¦", null); fsm.PlayClip("حد×§µوصي", () => { fsm.nextState = true; }); } }); } public override void OnStateExit() { base.OnStateExit(); fsm.nextState = false; } } }