示例#1
0
        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;
            }
        }
示例#2
0
 public void Add(GizmoShape shape)
 {
     shapes.Add(shape);
 }