ShowRoomName.cs 348 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using TMPro;
  5. public class ShowRoomName : MonoSingleton<ShowRoomName>
  6. {
  7. public TMP_Text roomName;
  8. private void OnEnable()
  9. {
  10. if (MachineRoomManager.Instance.data != null)
  11. roomName.text = MachineRoomManager.Instance.data.roomName;
  12. }
  13. }