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