public void StopPedestrianServer()
 {
     if (serverStarted == true)
     {
         PInvokeWrapper.StopPedestrianServer();
         Debug.Log("Pedestrian server halted");
         serverStarted = false;
     }
 }
Esempio n. 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;
     }
 }