private void DrawGizmoShape(GizmoShape gizmo, Vector3 position, float size, Color color) { switch (gizmo) { case GizmoShape.Cube: DrawCubeGizmo(position, size, color); break; case GizmoShape.Sphere: DrawSphereGizmo(position, size, color); break; case GizmoShape.WiredCube: DrawWiredCubeGizmo(position, size, color); break; case GizmoShape.WiredSphere: DrawWiredSphereGizmo(position, size, color); break; default: break; } }
public void Add(GizmoShape shape) { shapes.Add(shape); }