您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
690 B

using TMPro;
using UnityEngine;
namespace LobbyRelaySample.UI
{
/// <summary>
/// Read Only input field (for copy/paste reasons) Watches for the changes in the lobby's Relay Code
/// </summary>
public class RelayCodeUI : ObserverPanel<LobbyData>
{
[SerializeField]
TMP_InputField relayCodeText;
public override void ObservedUpdated(LobbyData observed)
{
if (!string.IsNullOrEmpty(observed.RelayCode))
{
relayCodeText.text = observed.RelayCode;
Show();
}
else
{
Hide();
}
}
}
}