Пример #1
0
 void OnDestroy()
 {
     if (SceneManager.GetActiveScene().buildIndex > 2)
     {
         nm_server.OnDropConnection(playercolor);
     }
 }
Пример #2
0
 void OnDestroy()
 {
     if (SceneManager.GetActiveScene().buildIndex > 2)
     {
         nm_server.OnDropConnection(playercolor);
     }
     else
     {
         //if(DiscoverNetworks.Instance != null)
         //DiscoverNetworks.Instance.DestroyInsitance();
     }
 }