Browse Source

промежуточное

Rimmon 4 years ago
parent
commit
b3de53cc0c
1 changed files with 11 additions and 4 deletions
  1. 11 4
      Assets/Scripts/Net/Client.cs

+ 11 - 4
Assets/Scripts/Net/Client.cs

@@ -190,8 +190,15 @@ public class Client : MonoBehaviour
         var cmd = (RemoteAssistCMD)bytedata[5];
         uint toId = BitConverter.ToUInt32(bytedata, 6);
         RemoteAssistCanvas.SetActive(true);
-
-        //Сделать активной кнопку звонка!!!
+        Debug.Log(cmd);
+        switch (cmd)
+        {
+            case RemoteAssistCMD.videoCallRequest:
+                //Сделать активной кнопку звонка!!!
+                //RemoteAssistCanvas.set
+                break;
+        }
+        
     }
 
     public void Myping(byte[] bytedata)
@@ -1053,8 +1060,8 @@ public class Client : MonoBehaviour
     public void OnGUI()
     {
         //if (GUI.Button(new Rect(250, 350, 160, 64), "Test VideoCall!"))
-        //{            
-        //    RemoteAssistRequestVideoCall(1);
+        //{
+        //    RemoteAssistRequestVideoCall(4);
         //}
         //if (GUI.Button(new Rect(250, 280, 160, 64), "Test"))
         //{