private void SetState(State state) { if (NPCManager.Instance.DebugBehavior) { Debug.Log($"Sheep {Owner.Id} set state {state}"); } _state = state; switch (_state) { case State.Idle: NPCOwner.Stop(true, true); Sheep.SetObstacle(); break; case State.Carried: Sheep.SetPassive(); break; case State.Enqueued: Sheep.SetAgent(); NPCOwner.Stop(true, false); break; case State.Launched: Sheep.SetPassive(); break; } }
private void SetState(State state) { if (NPCManager.Instance.DebugBehavior) { Debug.Log($"NPCBartender {Owner.Id} set state {state}"); } _state = state; switch (_state) { case State.Idle: NPCOwner.Stop(true, false); break; } }