TouhouLS/TouhouStation/Assets/Code/Networking/RoomCodeDisplay.cs

17 lines
293 B
C#
Raw Normal View History

2020-08-22 05:29:00 +00:00
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;
}
}
}