TouhouLS/Assets/Code/Networking/RoomCodeDisplay.cs

17 lines
293 B
C#

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;
}
}
}