public void ClientTask(string task)
        {
            string[] taskInfo = task.Split(':');
            //Debug.Log(window.gameObject.name);
            if (taskInfo.Length > 1)
            {
                switch (taskInfo[1])
                {
                case "DualHold":
                    CameraTask(taskInfo[1]);
                    //server.Send(obj.transform.eulerAngles.ToString());
                    break;

                case "Left":
                    LayerTask(taskInfo[1]);
                    break;

                case "Right":
                    LayerTask(taskInfo[1]);
                    break;

                //server.Send(obj.transform.eulerAngles.ToString());
                case "Tap":
                    TouchTask(taskInfo[1]);
                    break;

                case "Hold":
                    TouchTask(taskInfo[1]);
                    break;

                default:
                    break;
                }

                if (taskInfo[1].Contains("x/"))
                {
                    Debug.Log(taskInfo[1]);
                    string[] move = taskInfo[1].Replace("Touch", "").Split('/');
                    gc.MovePointer(new Vector3(float.Parse(move[1]), float.Parse(move[3]), 0));
                }
            }
        }
        public void ClientTask(string task)
        {
            string[] taskInfo = task.Split(':');
            //Debug.Log(window.gameObject.name);
            switch (taskInfo[0])
            {
            case "OpenApp":
                ap.InsertWindow(taskInfo[1]);
                break;

            case "CloseApp":
                ap.RemoveWindowApp();
                break;

            case "MoveApp":
                ap.PickUpWindow();
                break;

            case "SetApp":
                ap.SetDownWindow();
                break;

            case "Rotate":
                ap.RotateHorizonWindows(System.Convert.ToInt32(taskInfo[1]));
                break;

            case "Lock":
                ap.LockMode();
                break;

            case "Unlock":
                ap.UnlockMode();
                break;

            case "RecentApp":
                ap.OpenRecentWindow(System.Convert.ToInt32(taskInfo[1]));
                break;

            case "ClearCenter":
                ap.ClearCenter();
                break;
            }
            switch (taskInfo[1])
            {
            case "OpenApp":
                ap.InsertWindow(taskInfo[1]);
                break;

            case "DualHold":
                CameraTask(taskInfo[1]);
                //server.Send(obj.transform.eulerAngles.ToString());
                break;

            case "Left":
                LayerTask(taskInfo[1]);
                break;

            case "Right":
                LayerTask(taskInfo[1]);
                break;

            case "Up":
                LayerTask(taskInfo[1]);
                break;

            case "Down":
                LayerTask(taskInfo[1]);
                break;

            //server.Send(obj.transform.eulerAngles.ToString());
            case "Tap":
                TouchTask(taskInfo[1]);
                break;

            case "Hold":
                TouchTask(taskInfo[1]);
                break;

            default:
                break;
            }

            if (taskInfo[1].Contains("x/"))
            {
                Debug.Log(taskInfo[1]);
                string[] move = taskInfo[1].Replace("Touch", "").Split('/');
                gc.MovePointer(new Vector3(float.Parse(move[1]), float.Parse(move[3]), 0));
            }
        }