Browse Source

RemoteAssistCMD доработки

Rimmon 4 years ago
parent
commit
17c863ff1d
2 changed files with 11 additions and 7 deletions
  1. 6 6
      Assets/Scenes/Player.unity
  2. 5 1
      Assets/Scripts/Net/Client.cs

+ 6 - 6
Assets/Scenes/Player.unity

@@ -57421,8 +57421,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 1, y: 1}
-  m_AnchoredPosition: {x: 0, y: -130}
-  m_SizeDelta: {x: 0, y: 48.992462}
+  m_AnchoredPosition: {x: 0, y: 0}
+  m_SizeDelta: {x: 0, y: 228.79694}
   m_Pivot: {x: 0, y: 0}
 --- !u!114 &7150456488086696777
 MonoBehaviour:
@@ -58144,9 +58144,9 @@ RectTransform:
   m_RootOrder: 2
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 1}
-  m_AnchoredPosition: {x: 5, y: 140}
-  m_SizeDelta: {x: -435, y: -145}
+  m_AnchorMax: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 0, y: 0}
+  m_SizeDelta: {x: 1089, y: 590}
   m_Pivot: {x: 0, y: 0}
 --- !u!114 &7150456488228975560
 MonoBehaviour:
@@ -60221,7 +60221,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_AspectMode: 0
-  m_AspectRatio: 2.226121
+  m_AspectRatio: 1.8457627
 --- !u!114 &7150456489272170865
 MonoBehaviour:
   m_ObjectHideFlags: 0

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

@@ -9,7 +9,7 @@ using System.Text;
 using System;
 using System.IO;
 using UnityEngine.UI;
-public enum RemoteAssistCMD { videoCallRequest, callStop, audioCallRequest, messageSend, imageSend };
+public enum RemoteAssistCMD { videoCallRequest, callStop, audioCallRequest, messageSend, imageSend, SMOPP_TASK_INFO };
 public class Client : MonoBehaviour
 {
     const byte PING_PACKET = 30;
@@ -183,6 +183,10 @@ public class Client : MonoBehaviour
                 //RemoteAssistCanvas.set
                 remoteScript_.StartSession(fromId);
                 break;
+            case RemoteAssistCMD.SMOPP_TASK_INFO:
+                uint taskId = BitConverter.ToUInt32(bytedata, 10);
+                Debug.Log(taskId);
+                break;
         }
         
     }