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.
25 lines
565 B
C#
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);
|
||
|
}
|
||
|
}
|
||
|
}
|