You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/Utilities/CodeSugar/DGizmos.cs

25 lines
565 B
C#

2 months ago
using UnityEngine;
namespace D2D
{
public static class DGizmos
{
public static void Sphere(this Vector3 p, float r, Color c)
{
Gizmos.color = c;
Gizmos.DrawSphere(p, r);
}
public static void SphereWire(this Vector3 p, float r, Color c)
{
Gizmos.color = c;
Gizmos.DrawSphere(p, r);
}
public static void Box(this Vector3 p, Vector3 r, Color c)
{
Gizmos.color = c;
Gizmos.DrawCube(p, r);
}
}
}