public static void DrawGizmoDestination(NavMeshAgent agent) { #if UNITY_EDITOR if (agent.GetCurrentSpeed() <= 0) { return; } var oldColor = UnityEditor.Handles.color; UnityEditor.Handles.color = new Color(1f, 1f, 0.008f, 0.55f); UnityEditor.Handles.DrawWireDisc(agent.destination, Vector3.up, 0.25f); UnityEditor.Handles.color = oldColor; #endif }