using TMPro; using UnityEngine; using System.Collections.Generic; public class Room : MonoBehaviour { public int number; public GameObject numberTextObject; public List adjacentRooms; public bool isEntrance; private bool isExplored = false; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { if (isEntrance) { SetPropertiesOfEntrance(); } TextMeshProUGUI numberText = numberTextObject.GetComponent(); numberText.SetText(number.ToString()); } // Update is called once per frame void Update() { } private void SetPropertiesOfEntrance() { this.gameObject.GetComponent().color = Color.green; this.isEntrance = true; } }