agvmanager .임시수정
This commit is contained in:
@@ -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<AGV>("TestAGV");
|
||||
StudioService.instance.AddTypeListener("AGV", OnDataUpdate);
|
||||
StudioService.instance.AddTypeIdListener("AGV");
|
||||
var type = GetComponent<CustomAssetRenderObject>().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);
|
||||
}
|
||||
/// <summary>
|
||||
/// MQTT
|
||||
|
||||
Reference in New Issue
Block a user