Browse Source

fix first send

Виктор Шейко 4 years ago
parent
commit
861075a22a

+ 3 - 3
Assets/Scripts/Controllers/AuthorizationController.cs

@@ -40,10 +40,10 @@ public class AuthorizationController : MonoBehaviour
         if (success)
         {//SceneManager.LoadScene("Location");
             transform.gameObject.SetActive(false);
-            client.SendGetUsers((uint)PlayerController.active_company + 1);
+            //client.SendGetUsers((uint)PlayerController.active_company + 1);
            
-            if (ModeController.editor == true && PlayerController.active_location != PlayerController.locations.Count) client.BeaconsRequest((uint)PlayerController.locations[PlayerController.active_location].id);
-            if (ModeController.editor == false) client.BeaconsRequest((uint)PlayerController.locations[PlayerController.active_location].id);
+            //if (ModeController.editor == true && PlayerController.active_location != PlayerController.locations.Count) client.BeaconsRequest((uint)PlayerController.locations[PlayerController.active_location].id);
+            //if (ModeController.editor == false) client.BeaconsRequest((uint)PlayerController.locations[PlayerController.active_location].id);
         }
         if(error) Error.SetActive(true);
     }

+ 1 - 1
Assets/Scripts/Net/Client.cs

@@ -294,7 +294,7 @@ public class Client : MonoBehaviour
         //var ts = DateTime.Now.Ticks-1000000000000;
         //var te = DateTime.Now.Ticks;
         //CoordinatesRequest(ts, te, 1, 1);
-        SendGetUsers(1);
+        //SendGetUsers(1);
         
     }