浏览代码

Implemented CR feedback

/main/staging/429_cooldown_implementation
当前提交
286b4757
共有 3 个文件被更改,包括 23 次插入15 次删除
  1. 14
      Assets/Prefabs/UI/JoinContent.prefab
  2. 15
      Assets/Scripts/UI/JoinMenuUI.cs
  3. 9
      Assets/Scripts/UI/SpinnerUI.cs

14
Assets/Prefabs/UI/JoinContent.prefab


m_EditorClassIdentifier:
m_onVisibilityChange:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 1462126939442648229}
m_TargetAssemblyTypeName: LobbyRelaySample.UI.JoinMenuUI, LobbyRelaySample
m_MethodName: JoinMenuChangedVisibility
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_LobbyButtonPrefab: {fileID: 7018369548608736188, guid: f6d35a456ba76a24587dce83bd088b7d, type: 3}
m_LobbyButtonParent: {fileID: 7824921818678239159}
--- !u!114 &7550446569341709048

15
Assets/Scripts/UI/JoinMenuUI.cs


RemoveLobbyButton(m_LocalLobby[key]);
}
private bool CanDisplay(LocalLobby lobby)
public void JoinMenuChangedVisibility(bool show)
return lobby.Data.State == LobbyState.Lobby && !lobby.Private;
if (show)
OnRefresh();
private void Awake()
private bool CanDisplay(LocalLobby lobby)
m_onVisibilityChange.AddListener(JoinMenuChangedVisibility);
}
private void JoinMenuChangedVisibility(bool show)
{
if (show)
OnRefresh();
return lobby.Data.State == LobbyState.Lobby && !lobby.Private;
}
/// <summary>

9
Assets/Scripts/UI/SpinnerUI.cs


errorTextVisibility.Show();
var errorString = new StringBuilder();
errorString.Append("Error");
var codeString = ": ";
errorString.Append(": ");
codeString += observed.lastErrorCode;
errorString.Append(codeString);
{
errorString.Append(observed.lastErrorCode);
errorString.Append(", ");
}
errorString.Append("Check Unity Console Log for Details.");
errorText.SetText(errorString.ToString());

正在加载...
取消
保存