Exemplo n.º 1
0
 private void Start()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Exemplo n.º 2
0
        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);
        }