private static void DrawGizmo(NavGrid navGrid, GizmoType gizmoType) { foreach (NavTile t in navGrid.GetComponentsInChildren<NavTile>()) { Gizmos.color = new Color(0.5f, 0.75f, 1f, 0.5f); Gizmos.DrawCube(t.transform.position + Vector3.up * 0.001f, t.GetComponent<BoxCollider>().size); Gizmos.color = new Color(0.5f, 0.5f, 0.5f, 0.5f); Gizmos.DrawWireCube(t.transform.position, t.GetComponent<BoxCollider>().size); } }