public void StopVehicleServer() { if (serverStarted == true) { PInvokeWrapper.StopServer(vehicleType); Debug.LogWarning("Server halted"); serverStarted = false; } else { Debug.LogWarning("Server already halted"); } }
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; } }
protected void OnApplicationQuit() { PInvokeWrapper.StopServer(); }
public void StopVehicleServer() { PInvokeWrapper.StopServer(vehicleName); }