private void Start() { if (Instance == null) { Instance = this; } }
public BoundingBox ConstructCornerChild(CameraCorner corner) { var newBound = BoundingBox.ConstructBoundingBox(Vector3.zero, corner.ToString()); newBound.transform.parent = CameraCornerProvider.GetCornerTransform(corner); newBound.transform.localScale = Vector3.one; newBound.transform.localRotation = Quaternion.identity; newBound.transform.localPosition = Vector3.zero; return(newBound); }