You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
644 B
27 lines
644 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace UltraCombos.Frozen
|
|
{
|
|
public class Ruler : MonoBehaviour
|
|
{
|
|
public float width = 8.0f;
|
|
public float length = 5.0f;
|
|
public float height = 1.5f;
|
|
|
|
private void OnDrawGizmos()
|
|
{
|
|
var mat = Gizmos.matrix;
|
|
|
|
Gizmos.matrix = transform.localToWorldMatrix;
|
|
Vector3 size = new Vector3(width, height, length);
|
|
Vector3 center = new Vector3(0, height * 0.5f, 0);
|
|
Gizmos.DrawWireCube(center, size);
|
|
|
|
Gizmos.matrix = mat;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|