private void Update() { if (!agent.hasPath) { movementBehavior.SetNextTargetPosition(); } CheckConditions(); }