Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     if (leftWall != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.left, leftWall, offset);
     }
     if (rightWall != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.right, rightWall, offset);
     }
     if (topWall != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.top, topWall, offset);
     }
     if (bottomWall != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.bottom, bottomWall, offset);
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     if (topBoundedKillzone != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.top, topBoundedKillzone.gameObject, offset);
     }
     if (bottomBoundedKillzone != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.bottom, bottomBoundedKillzone.gameObject, offset);
     }
     if (leftBoundedKillzone != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.left, leftBoundedKillzone.gameObject, offset);
     }
     if (rightBoundedKillzone != null)
     {
         ScreenSpaceUtilities.PlaceGameobjectAtBound(Bound.right, rightBoundedKillzone.gameObject, offset);
     }
 }