void OnDrawGizmos() { if (!Application.isPlaying) { StoreColliders(); } Gizmos.color = color; for (int i = 0; i < colliders.Length; i++) { Collider2D collider = colliders[i]; if (collider != null) { if (collider is BoxCollider2D) { Hedra.DrawWireCube(collider.bounds.center, ((BoxCollider2D)collider).size, collider.transform.rotation); } else { Hedra.DrawWireCube(collider.bounds.center, collider.bounds.size, collider.transform.rotation); } } } }