public override void OnUpdate(FSMManager fsm, float time) { //持续时间结束 if (time - enterTime >= lastTime) { fsm.EndState(FSMState.Sheep); } }