void ClearClientInterface() { if (_clientInterface != null) { _clientInterface.OnSessionListUpdated -= OnSessionListUpdated; _clientInterface.OnTerminate -= OnOnlineInterfaceTerminated; _clientInterface = null; } }
void FetchClientInterface() { _clientInterface = OnlineService.ClientInterface; if (_clientInterface != null) { _clientInterface.OnTerminate += OnOnlineInterfaceTerminated; _clientInterface.OnSessionListUpdated += OnSessionListUpdated; _clientInterface.GetAvailableSessions(ref _sessions); } UpdateSessionButtonList(); }