From a79f80ce1fed1baa4a14163732ddd31d20f2a0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A4=80=ED=95=99=20=EB=85=B8?= Date: Thu, 17 Jul 2025 15:07:36 +0900 Subject: [PATCH] =?UTF-8?q?request=20=EC=8B=9C=20try=20catch=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EC=A0=9C=EC=9D=B4=EC=8A=A8=20=ED=8C=8C=EC=8B=B1=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8=EC=8B=9C=20=EC=97=90=EB=9F=AC=ED=8C=9D?= =?UTF-8?q?=EC=97=85=20=EC=83=9D=EC=84=B1=20=EC=98=A4=EB=B8=8C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=EC=82=AD=EC=A0=9C=EC=8B=9C=20=EA=B8=B0=EC=A6=88?= =?UTF-8?q?=EB=AA=A8=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/RTGController.cs | 1 + Assets/WorkSpace/LH/Web/WebManager.cs | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/RTGController.cs b/Assets/Scripts/RTGController.cs index 10d75c42..49c20e5b 100644 --- a/Assets/Scripts/RTGController.cs +++ b/Assets/Scripts/RTGController.cs @@ -65,6 +65,7 @@ public class RTGController : UnitySingleton if (Input.GetKeyDown(KeyCode.Delete)&& !simulationUI.isplaying) { Destroy(selectedObjects[0]); + ClearGizmoTargetObjects(); } } public void SetWorkGizmoId(GizmoId gizmoId) diff --git a/Assets/WorkSpace/LH/Web/WebManager.cs b/Assets/WorkSpace/LH/Web/WebManager.cs index 3c9c2dd2..d232d98f 100644 --- a/Assets/WorkSpace/LH/Web/WebManager.cs +++ b/Assets/WorkSpace/LH/Web/WebManager.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; using System.Collections; using Octopus.Simulator.Networks; using System.Collections.Generic; @@ -86,7 +86,14 @@ namespace UVC.Networks if ( json != null) { - data = JsonConvert.SerializeObject(json); + try + { + data = JsonConvert.SerializeObject(json); + } + catch (Exception e) + { + AlertManager.I.ShowAlert("Error",e.Message).Forget(); + } } RequestAsync(requestURL, type, data)