Example #1
0
 void ClearClientInterface()
 {
     if (_clientInterface != null)
     {
         _clientInterface.OnSessionListUpdated -= OnSessionListUpdated;
         _clientInterface.OnTerminate          -= OnOnlineInterfaceTerminated;
         _clientInterface = null;
     }
 }
Example #2
0
    void FetchClientInterface()
    {
        _clientInterface = OnlineService.ClientInterface;

        if (_clientInterface != null)
        {
            _clientInterface.OnTerminate          += OnOnlineInterfaceTerminated;
            _clientInterface.OnSessionListUpdated += OnSessionListUpdated;
            _clientInterface.GetAvailableSessions(ref _sessions);
        }

        UpdateSessionButtonList();
    }