/// <summary> /// FSM轮询,由拥有者轮询调用 /// </summary> public override void OnRefresh() { if (IsPause) { return; } currentState?.Reason(this); currentState?.Action(this); }
/// <summary> /// FSM轮询,由拥有者轮询调用 /// </summary> public override void Update() { currentState?.Reason(this); currentState?.Action(this); }