Exemple #1
0
 private void OnApplicationQuit()
 {
     if (SpatialOS.IsConnected)
     {
         SpatialOS.Disconnect();
     }
 }
 private void OnApplicationQuit()
 {
     if (SpatialOS.IsConnected)
     {
         Debug.Log("Bootstrap disconnecting from SpatialOS.");
         SpatialOS.OnConnected -= OnConnected;
         SpatialOS.Disconnect();
     }
 }
 private void ConnectionTimeout()
 {
     if (SpatialOS.IsConnected)
     {
         SpatialOS.Disconnect();
     }
     NotReadyWarning.SetActive(true);
     ConnectButton.interactable = true;
 }
 private void ConnectionTimeout()
 {
     if (SpatialOS.IsConnected)
     {
         SpatialOS.Disconnect();
     }
     instance.NotReadyWarning.SetActive(true);
     EnableConnectButtons();
 }
 private void OnApplicationQuit()
 {
     if (SpatialOS.IsConnected)
     {
         SpatialOS.Commands.DeleteEntity(clientAuthorityCheck, gameObject.EntityId())
         .OnFailure(OnDeleteFailure);
         SpatialOS.Disconnect();
     }
 }
Exemple #6
0
        private void ConnectionTimeout()
        {
            if (SpatialOS.IsConnected)
            {
                SpatialOS.Disconnect();
            }

            ConnectButton.interactable = true;
        }
 private void OnApplicationQuit()
 {
     if (SpatialOS.IsConnected)
     {
         if (SpatialOS.Configuration.EnginePlatform == EnginePlatform.Client)
         {
             ClientPlayerSpawner.DeletePlayer();
         }
         SpatialOS.Disconnect();
     }
 }