private void OnDrawGizmos() { if (tr == null || vertex == null || vertex.Length == 0) { return; } Gizmos.color = Color.green; DrawImaginaryCube(GetPos().ToVector2(), halfSize.ToVector2()); for (int i = 0; i < vertex.Length; i++) { Gizmos.DrawCube((vertex[i] + GetPos()).ToVector3(), new Vector3(0.3f, 1f, 0.3f)); } }