//Jimmy Vegas Unity Tutorials //This script will generate locations using System.Collections; using System.Collections.Generic; using UnityEngine; public class LocationGenerate : MonoBehaviour { public int crateX; public int crateZ; public GameObject theCrate; public int goldX; public int goldZ; public GameObject theGold; public int trashX; public int trashZ; public GameObject theTrash; void Start () { crateX = Random.Range(-9, 10); crateZ = Random.Range(-9, 10); theCrate.transform.position = new Vector3(crateX, 1, crateZ); goldX = Random.Range(-9, 10); goldZ = Random.Range(-9, 10); theGold.transform.position = new Vector3(goldX, 1, goldZ); trashX = Random.Range(-9, 10); trashZ = Random.Range(-9, 10); theTrash.transform.position = new Vector3(trashX, 1, trashZ); } }