|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
using TMPro;
|
|
|
|
public class RoomCodeDisplay : MonoBehaviour {
|
|
|
|
public TextMeshProUGUI Text;
|
|
|
|
void Update() {
|
|
if (NetworkManager.inRoom){
|
|
Text.text = NetworkManager.net.CurrentRoom.Name;
|
|
}
|
|
}
|
|
}
|