mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
26 lines
534 B
C#
26 lines
534 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 OnRenderObject()
|
|
{
|
|
Popcron.Gizmos.Cube(transform.TransformPoint(box.center), transform.rotation, box.size);
|
|
}
|
|
}
|
|
}
|