private static void DisplayGizmos(SeekSteering seekSteering) { if (seekSteering.DrawDebugPath) { Gizmos.color = Color.red; DrawPath(seekSteering.GetDebugPath()); } if (seekSteering.DrawDebugSmoothPath) { Gizmos.color = Color.blue; DrawPath(seekSteering.GetSmoothedPath()); } }
static void DrawGizmoNonSelected(SeekSteering seekSteering, GizmoType type) { DisplayGizmos(seekSteering); }
static void DrawGizmo(SeekSteering seekSteering, GizmoType type) { DisplayGizmos(seekSteering); }
void OnEnable() { _targetObject = (SeekSteering)serializedObject.targetObject; }