From a5d9c158ecfc36e02fada4baa7add20c12f60e2a Mon Sep 17 00:00:00 2001 From: UVCLimHun Date: Tue, 27 May 2025 10:18:29 +0900 Subject: [PATCH] textdelete --- Assets/WorkSpace/LH/MQTTManager.cs | 2 -- Assets/WorkSpace/LH/WebManager.cs | 9 --------- Assets/WorkSpace/LH/WebReceiver.cs | 3 --- 3 files changed, 14 deletions(-) diff --git a/Assets/WorkSpace/LH/MQTTManager.cs b/Assets/WorkSpace/LH/MQTTManager.cs index afba8f9e..e8e467a7 100644 --- a/Assets/WorkSpace/LH/MQTTManager.cs +++ b/Assets/WorkSpace/LH/MQTTManager.cs @@ -19,7 +19,6 @@ namespace Octopus.Simulator.Networks public static MQTTManager mqttManager; public Dictionary clientTable = new Dictionary(); public BaseSimulationMessage basemessage; - public TMP_Text text; [SerializeField] string MQTTpath = ""; @@ -125,7 +124,6 @@ namespace Octopus.Simulator.Networks { basemessage = JsonConvert.DeserializeObject(payload); MQTTDataBase.Instance.AddDict(basemessage.component_id, payload); - //text.text = payload; } //onMessageReceived?.Invoke(topicName, payload); } diff --git a/Assets/WorkSpace/LH/WebManager.cs b/Assets/WorkSpace/LH/WebManager.cs index 0ba03877..06cfc315 100644 --- a/Assets/WorkSpace/LH/WebManager.cs +++ b/Assets/WorkSpace/LH/WebManager.cs @@ -28,7 +28,6 @@ namespace Octopus.Simulator.Networks string token = ""; int port; string http; - public TMP_Text text; void Awake() { @@ -48,7 +47,6 @@ namespace Octopus.Simulator.Networks } */ var json = Resources.Load(WebPath); - Debug.Log(json.text); WebConfigList ConfigList = JsonConvert.DeserializeObject(json.text); var config = ConfigList.configs[0]; host = config.host; @@ -69,7 +67,6 @@ namespace Octopus.Simulator.Networks } */ TextAsset json = Resources.Load(ApiPath); - Debug.Log(json.text); apiConfig = JsonConvert.DeserializeObject(json.text); } @@ -122,14 +119,12 @@ namespace Octopus.Simulator.Networks Debug.Log(request.error); //callback을 false로 하고 텍스트를 리턴합니다. callback(false, request.downloadHandler.text); - text.text = request.downloadHandler.text; } else { //result가 에러가 아니라면, callback을 true로 하고 텍스트를 리턴합니다. Debug.Log(request.downloadHandler.text); callback(true, request.downloadHandler.text); - text.text = request.downloadHandler.text; } } } @@ -150,14 +145,12 @@ namespace Octopus.Simulator.Networks Debug.Log(request.error); //callback을 false로 하고 텍스트를 리턴합니다. callback(false, request.downloadHandler.text); - text.text = request.downloadHandler.text; } else { //result가 에러가 아니라면, callback을 true로 하고 텍스트를 리턴합니다. Debug.Log(request.downloadHandler.text); callback(true, request.downloadHandler.text); - text.text = request.downloadHandler.text; } } } @@ -179,14 +172,12 @@ namespace Octopus.Simulator.Networks Debug.Log(request.error); //callback을 false로 하고 텍스트를 리턴합니다. callback(false, request.downloadHandler.text); - text.text += request.downloadHandler.text; } else { //result가 에러가 아니라면, callback을 true로 하고 텍스트를 리턴합니다. Debug.Log(request.downloadHandler.text); callback(true, request.downloadHandler.text); - text.text = request.downloadHandler.text; } } } diff --git a/Assets/WorkSpace/LH/WebReceiver.cs b/Assets/WorkSpace/LH/WebReceiver.cs index e336d5e7..e52a01b9 100644 --- a/Assets/WorkSpace/LH/WebReceiver.cs +++ b/Assets/WorkSpace/LH/WebReceiver.cs @@ -8,7 +8,6 @@ public class WebReceiver : MonoBehaviour { public SimulatorConfig config; public event Action onParameterRecived; - public TMP_Text text; public void Start() { config.projectId = "12"; @@ -22,8 +21,6 @@ public class WebReceiver : MonoBehaviour { config = JsonConvert.DeserializeObject(json); WebParameters.config = config; - text.text = $"{config.simulatorNumber}/{config.projectId+config.logicId}/{config.simulationId}"; - Debug.Log(text.text); onParameterRecived?.Invoke(config); } }