private void Update(float dt) { if (_targeting.CurrentTarget == null) { Stop(); return; } var isReachedTarget = IsReachedTarget(); if (_following.CurrentTarget == _targeting.CurrentTarget && isReachedTarget == _following.IsActive) { _following.Switch(!isReachedTarget); } }