public void StopPedestrianServer() { if (serverStarted == true) { PInvokeWrapper.StopPedestrianServer(); Debug.Log("Pedestrian server halted"); serverStarted = false; } }
protected void OnApplicationQuit() { PInvokeWrapper.StopMainServer(); Debug.LogWarning("Main server stopped"); if(PedestrianCompanion.serverStarted) { PInvokeWrapper.StopPedestrianServer(); PedestrianCompanion.serverStarted = false; } if(VehicleCompanion.serverStarted) { PInvokeWrapper.StopServer(""); PedestrianCompanion.serverStarted = false; } }