void Awake() { _inst = this; _gameObject = gameObject; closeBtn.onClick.AddListener(ClosePanel); _listItem = ResourceLoader.LoadAssets("PrefabUI/Login/ServerListItem"); }
public void LoadConfigIpCallback() { LoginPanel.GetInst().OnConfigLoadEnd(); ServerListPanel.GetInst().SetServerInfo(); _gameObject.SetActive(false); ApplicationEntry.GetInst().OnConfigLoadEnd(); }
private void OnClickServer() { if (_index < 0) { return; } IpData.SetCurServerData(_index); LoginPanel.GetInst().SetCurServer(); ServerListPanel.GetInst().ClosePanel(); }
void OnDestroy() { _inst = null; }
private void OnShowServerList() { ServerListPanel.GetInst().OpenPanel(); }