From dab794e479cbc5fbe7bc01cd74ab87f33fb30e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A4=80=ED=95=99=20=EB=85=B8?= Date: Mon, 26 May 2025 20:22:01 +0900 Subject: [PATCH] =?UTF-8?q?agvmanager=20.=EC=9E=84=EC=8B=9C=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Studio/TwinObject/DynamicObject/AGVManager.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Studio/TwinObject/DynamicObject/AGVManager.cs b/Assets/Scripts/Studio/TwinObject/DynamicObject/AGVManager.cs index 3aa78571..ecd38e92 100644 --- a/Assets/Scripts/Studio/TwinObject/DynamicObject/AGVManager.cs +++ b/Assets/Scripts/Studio/TwinObject/DynamicObject/AGVManager.cs @@ -5,6 +5,7 @@ using UnityEngine; using Studio.Dynamic.TwinObject; using Studio.Core; using Studio.Conifg; +using Studio.AssetTool; namespace Studio.Dynamic.M { @@ -25,9 +26,16 @@ namespace Studio.Dynamic.M } public void OnPlayStart() { - prf_AGV = Resources.Load("TestAGV"); - StudioService.instance.AddTypeListener("AGV", OnDataUpdate); - StudioService.instance.AddTypeIdListener("AGV"); + var type = GetComponent().addTopic; + var assets = ConfigConnected.AssetSettings; + prf_AGV = assets[type].loadedObject; + if (prf_AGV == null) + { + //todo::팝업메시지 나주엥 설정.... + return; + } + StudioService.instance.AddTypeListener(type, OnDataUpdate); + StudioService.instance.AddTypeIdListener(type); } /// /// MQTT