// Jimmy Vegas Unity Tutorials // This script wil lstart your randomizer using System.Collections; using System.Collections.Generic; using UnityEngine; public class DungeonRandom : MonoBehaviour { public int objectOne; public GameObject coffinObject; public GameObject squareObject; public GameObject barrelObject; void Start () { objectOne = Random.Range(1, 4); if (objectOne == 1) { coffinObject.SetActive(true); } if (objectOne == 2){ squareObject.SetActive(true); } if(objectOne == 3) { barrelObject.SetActive(true); } } } } } }