new-horizons/NewHorizons/Utility/BoxShapeVisualizer.cs

26 lines
525 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Popcron;
namespace NewHorizons.Utility
{
public class BoxShapeVisualizer : MonoBehaviour
{
BoxShape box;
void Awake()
{
box = GetComponent<BoxShape>();
}
void OnGUI()
{
Popcron.Gizmos.Cube(transform.TransformPoint(box.center), transform.rotation, box.size);
}
}
}