// 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(); } }
// Use this for initialization void Start() { var bounds = new WorldBoundHelpers(worldBounds); transform.position = bounds.RandomLocationInBounds(); }