using System.Collections.Generic; using Blue; using Newtonsoft.Json; using UnityEngine; public class BlueTest : AbstractController { void Update() { if(Input.GetKeyDown(KeyCode.L)) { List list = new List(); ScenePosRotInfo pos = new ScenePosRotInfo(); ScenePosRotInfo rot = new ScenePosRotInfo(); pos.x = 1;pos.y = 1;pos.z = 1; rot.x = 2;rot.y = 2;;rot.z = 2; list.Add(pos);list.Add(rot); string jsonString = JsonConvert.SerializeObject(list); string url = "https://api-fat1.ghz-tech.com/mr-navigator/v1/project/position/396"; //HttpTool.Instance.UploadScenePosRot(url,jsonString,CallBack); //this.SendCommand(new UploadCommand(url, HttpTool.Instance.RequestHeader, HttpTool.Instance.Token, jsonString)); } } private void CallBack(string e) { Debug.LogError(e); } }