// Use this for initialization
 void Start()
 {
     var bounds = new WorldBoundHelpers(worldBounds);
     for(int i = 0; i < 100; i++) {
         var newBall = Instantiate(objectToDupe);
         newBall.transform.localPosition = bounds.RandomLocationInBounds();
     }
 }
        // Use this for initialization
        void Start()
        {
            var bounds = new WorldBoundHelpers(worldBounds);

            for (int i = 0; i < 100; i++)
            {
                var newBall = Instantiate(objectToDupe);
                newBall.transform.localPosition = bounds.RandomLocationInBounds();
            }
        }
示例#3
0
 // Use this for initialization
 void Start()
 {
     var bounds = new WorldBoundHelpers(worldBounds);
     transform.position = bounds.RandomLocationInBounds();
 }
示例#4
0
        // Use this for initialization
        void Start()
        {
            var bounds = new WorldBoundHelpers(worldBounds);

            transform.position = bounds.RandomLocationInBounds();
        }