void OnDrawGizmos() { for (int i = 0; i < transform.childCount; i++) { GizmosExtension.DrawLine(transform.GetChild(i).position, transform.GetChild((i + 1) % transform.childCount).position, Color.cyan); } }
void OnDrawGizmos() { // GizmosExtension.DrawCircle(transform.position, ViewRadius, Color.white, 32); // GizmosExtension.DrawLine(transform.position, transform.position + DirectionFromAngle(ViewAngle / 2.0f) * ViewRadius, Color.white); // GizmosExtension.DrawLine(transform.position, transform.position + DirectionFromAngle(-ViewAngle / 2.0f) * ViewRadius, Color.white); if (_targetFound) { GizmosExtension.DrawLine(transform.position, _targetFound.position, Color.red); } }
void OnDrawGizmos() { GizmosExtension.DrawLine(transform.position, GroundCheckTransform.position, Color.yellow); }
void OnDrawGizmos() { GizmosExtension.DrawLine(ObjectRigidbody2D.position, Waypoints[_waypointIndex].position, Color.grey); }