Ejemplo n.º 1
0
 private void OnDestroy()
 {
     if (SteamManager.s_instance != this)
     {
         return;
     }
     SteamManager.s_instance = null;
     if (!this.m_bInitialized)
     {
         return;
     }
     CoopSteamServer.Shutdown();
     CoopSteamClient.Shutdown();
     CoopSteamManager.Shutdown();
     CoopLobbyManager.Shutdown();
     SteamAPI.Shutdown();
 }
Ejemplo n.º 2
0
 private void OnDestroy()
 {
     if (!SteamDSConfig.isDedicatedServer && SteamManager.s_instance != this)
     {
         return;
     }
     if (SteamDSConfig.isDedicatedServer)
     {
         Debug.Log("SteamManager - Someone call OnDestroy");
     }
     if (!this.initialized)
     {
         return;
     }
     if (SteamDSConfig.isDedicatedServer)
     {
         SteamDSConfig.manager.Shutdown();
     }
     CoopSteamServer.Shutdown();
     CoopSteamClient.Shutdown();
     CoopSteamManager.Shutdown();
     CoopLobbyManager.Shutdown();
 }