void OnDrawGizmosSelected() { if (target != null) { Seek2D.DrawGizmos(target.position, Agent); } }
void OnDrawGizmosSelected() { if (targetRigid) { Seek2D.DrawGizmos(_futureSeekCache, Agent); DrawUtil.DrawLine(_futureSeekCache, targetRigid.position, Color.green); } }
void OnDrawGizmosSelected() { if (path.waypoints != null && path.Size != 0) { path.DrawGizmos(); // Draw the arrival towards the last end point (if no looping) if (_bUsingArrive) { Arrive2D.DrawGizmos(Agent, arriveSensor); } // Show which current waypoint we are traveling to. else { Seek2D.DrawGizmos(path.CurrentWaypoint(), Agent); } } }