Update gizmoManager.cs

This commit is contained in:
GamerClassN7 2022-01-30 00:24:14 +01:00
parent 8274a41933
commit 37b6bc6cc8

View File

@ -7,8 +7,11 @@ public class gizmoManager : MonoBehaviour
void OnDrawGizmos() void OnDrawGizmos()
{ {
Bounds bounds = GetChildRendererBounds(gameObject); if (!this.gameObject.transform.parent.name.Contains("chunk"))
Gizmos.DrawWireCube(bounds.center, bounds.size); {
Bounds bounds = GetChildRendererBounds(gameObject);
Gizmos.DrawWireCube(bounds.center, bounds.size);
}
} }
Bounds GetChildRendererBounds(GameObject go) Bounds GetChildRendererBounds(GameObject go)
{ {