예제 #1
0
 private void OnApplicationQuit()
 {
     if (SpatialOS.IsConnected)
     {
         SpatialOS.Disconnect();
     }
 }
예제 #2
0
 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();
     }
 }
예제 #6
0
        private void ConnectionTimeout()
        {
            if (SpatialOS.IsConnected)
            {
                SpatialOS.Disconnect();
            }

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