Exemplo n.º 1
0
 public void DrawLevelEditorGizmos(ILevelEditorGizmosDrawer drawer)
 {
     if (target != null)
     {
         drawer.DrawLine(transform.position, target.transform.position, Color.blue);
     }
 }
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;

                drawer = SetupDrawer();
            }
        }
Exemplo n.º 3
0
 public static void Draw2DGrid(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector2Int size, Vector2 spacing, Quaternion rotation)
 {
     drawer.Draw2DGrid(center, size, spacing, rotation, Color.white);
 }
Exemplo n.º 4
0
 public static void Draw2DGrid(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector2Int size, Vector2 spacing, Vector3 rotation, Color color)
 {
     drawer.Draw2DGrid(center, size, spacing, Quaternion.Euler(rotation), color);
 }
Exemplo n.º 5
0
 public static void DrawWireCube(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector3 size, Vector3 rotation, Color color)
 {
     drawer.DrawWireCube(center, size, Quaternion.Euler(rotation), color);
 }
Exemplo n.º 6
0
 public static void DrawLine(this ILevelEditorGizmosDrawer drawer, Vector3 start, Vector3 end)
 {
     drawer.DrawLine(start, end, Color.white);
 }
Exemplo n.º 7
0
 public static void DrawWireCube(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector3 size, Color color)
 {
     drawer.DrawWireCube(center, size, Quaternion.identity, color);
 }
Exemplo n.º 8
0
 public static void DrawWireCube(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector3 size, Quaternion rotation)
 {
     drawer.DrawWireCube(center, size, rotation, Color.white);
 }
Exemplo n.º 9
0
 public static void DrawSquare(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector2 size, Vector3 rotation)
 {
     drawer.DrawSquare(center, size, Quaternion.Euler(rotation), Color.white);
 }
Exemplo n.º 10
0
 public static void DrawSquare(this ILevelEditorGizmosDrawer drawer, Vector3 center, Vector2 size)
 {
     drawer.DrawSquare(center, size, Quaternion.identity, Color.white);
 }
Exemplo n.º 11
0
 public void DrawLevelEditorGizmos(ILevelEditorGizmosDrawer drawer)
 {
     drawer.DrawWireCube(transform.position, Vector3.one, Color.green);
 }