public override void OnServerConnect(NetworkConnection conn) { base.OnServerConnect(conn); print(MethodBase.GetCurrentMethod().Name); NW_Discovery.StopDiscovery(); }
public void DoRestart() { NW_Discovery.StopDiscovery(); NetworkManager nwm = FindObjectOfType <NetworkManager>(); nwm.StopHost(); nwm.StopClient(); Network.Disconnect(); NetworkServer.Shutdown(); StartCoroutine(LoadDelayed()); }