void OnDestroy() { if (SceneManager.GetActiveScene().buildIndex > 2) { nm_server.OnDropConnection(playercolor); } }
void OnDestroy() { if (SceneManager.GetActiveScene().buildIndex > 2) { nm_server.OnDropConnection(playercolor); } else { //if(DiscoverNetworks.Instance != null) //DiscoverNetworks.Instance.DestroyInsitance(); } }