/// <summary> /// Draw the detection structure. /// </summary> void OnDrawGizmos() { Vector3 center = new Vector3(sceneWidth / 2, 0, sceneHeight / 2); Gizmos.color = Color.white; Gizmos.DrawWireCube(center, new Vector3(sceneWidth, 1, sceneHeight)); if (detector == null || !draw) { return; } detector.Draw(); }