Code (CSharp):
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ProceduralRoomSpawner : MonoBehaviour
- {
- [SerializeField] GameObject[] roomPrefab;
- private void Start()
- {
- // a random number between 0 and 3 used to choose...