private void MovementLogic(Transform objTransform) { if (!movement.MoveUponDistance(objTransform, detection.DetectedColider.Radius, detection.DetectedColider.MoveType)) { movement.MoveUponDistance(objTransform, detection.DetectedColider.Radius * 2, detection.DetectedColider.MoveType); } }