using FSM; using ZXKFramework; namespace DongWuYiXue.QiGuanChaGuan { public class ShuZheZhunBeiState : FsmState { public override void OnStateEnter() { base.OnStateEnter(); this.Log("进入术者准备装填"); if (fsm.main_gameModel.modeType == ModeType.ShiXun) { fsm.AddScore(5, 0); fsm.nextState = true; } if (fsm.main_gameModel.modeType == ModeType.KaoHe) { fsm.ShowTxtQuestion(0, 3, 1, () => { fsm.AddScore(4, 0); fsm.nextState = true; }); } } public override void OnStateStay() { base.OnStateStay(); } public override void OnStateExit() { base.OnStateExit(); fsm.nextState = false; } } }