void Start() { NetworkManager manager = NetworkManager.singleton; _apiConnector = manager.GetComponent <TTApiConnector>(); _apiConnector.ListServer.ClientApi.onServerListUpdated += _serverListUI.UpdateList; _apiConnector.ListServer.ClientApi.onServerListUpdated += clean; AddButtonHandlers(); }
private void Start() { _manager = NetworkManager.singleton as TTNetworkManagerListServer; _apiConnector = _manager.GetComponent <TTApiConnector>(); _manager.onPlayerListChanged += onPlayerListChanged; _manager.onServerStarted += serverStartedHandler; _manager.onServerStopped += serverStoppedHandler; _apiConnector.ListServer.ClientApi.onServerListUpdated += updateListOfServers; TTSettingsManager.onPlayerNameChanged += updateGameName; TTSettingsManager.onServerPrivacyChanged += updatePrivacy; }