|
@@ -34,34 +34,32 @@ public class SavePanel : AbstractController
|
|
|
{
|
|
|
meshTest.transform.parent = parent;
|
|
|
|
|
|
- pos.x = meshTest.localPosition.x;
|
|
|
- pos.y = meshTest.localPosition.y;
|
|
|
- pos.z = meshTest.localPosition.z;
|
|
|
- rot.x = meshTest.localEulerAngles.x;
|
|
|
- rot.y = meshTest.localEulerAngles.y;
|
|
|
- rot.z = meshTest.localEulerAngles.x;
|
|
|
+ posRotlist[0].x = meshTest.localPosition.x;
|
|
|
+ posRotlist[0].y = meshTest.localPosition.y;
|
|
|
+ posRotlist[0].z = meshTest.localPosition.z;
|
|
|
+ posRotlist[1].x = meshTest.localEulerAngles.x;
|
|
|
+ posRotlist[1].y = meshTest.localEulerAngles.y;
|
|
|
+ posRotlist[1].z = meshTest.localEulerAngles.z;
|
|
|
string jsonString = JsonConvert.SerializeObject(posRotlist);
|
|
|
-
|
|
|
this.SendCommand(new UploadCommand(this.GetService<IUpOrDownloadService>().URL, jsonString));
|
|
|
sCToggleSwitch3D.isOn = false;
|
|
|
gameObject.SetActive(false);
|
|
|
}
|
|
|
-
|
|
|
private void Cancle()
|
|
|
{
|
|
|
meshTest.transform.parent = parent;
|
|
|
- posRotlist = this.GetService<IUpOrDownloadService>().PosRot;
|
|
|
+ List<ScenePosRotInfo> TempPosRotlist = this.GetService<IUpOrDownloadService>().PosRot;
|
|
|
|
|
|
- float posX = posRotlist[0].x;
|
|
|
- float posY = posRotlist[0].y;
|
|
|
- float posZ = posRotlist[0].z;
|
|
|
+ float posX = TempPosRotlist[0].x;
|
|
|
+ float posY = TempPosRotlist[0].y;
|
|
|
+ float posZ = TempPosRotlist[0].z;
|
|
|
|
|
|
Vector3 pos = new Vector3(posX, posY, posZ);
|
|
|
meshTest.localPosition = pos;
|
|
|
|
|
|
- float rotX = posRotlist[1].x;
|
|
|
- float rotY = posRotlist[1].y;
|
|
|
- float rotZ = posRotlist[1].z;
|
|
|
+ float rotX = TempPosRotlist[1].x;
|
|
|
+ float rotY = TempPosRotlist[1].y;
|
|
|
+ float rotZ = TempPosRotlist[1].z;
|
|
|
meshTest.localEulerAngles = new Vector3(rotX, rotY, rotZ);
|
|
|
|
|
|
sCToggleSwitch3D.isOn = false;
|