agvmanager .임시수정
This commit is contained in:
@@ -5,6 +5,7 @@ using UnityEngine;
|
|||||||
using Studio.Dynamic.TwinObject;
|
using Studio.Dynamic.TwinObject;
|
||||||
using Studio.Core;
|
using Studio.Core;
|
||||||
using Studio.Conifg;
|
using Studio.Conifg;
|
||||||
|
using Studio.AssetTool;
|
||||||
|
|
||||||
namespace Studio.Dynamic.M
|
namespace Studio.Dynamic.M
|
||||||
{
|
{
|
||||||
@@ -25,9 +26,16 @@ namespace Studio.Dynamic.M
|
|||||||
}
|
}
|
||||||
public void OnPlayStart()
|
public void OnPlayStart()
|
||||||
{
|
{
|
||||||
prf_AGV = Resources.Load<AGV>("TestAGV");
|
var type = GetComponent<CustomAssetRenderObject>().addTopic;
|
||||||
StudioService.instance.AddTypeListener("AGV", OnDataUpdate);
|
var assets = ConfigConnected.AssetSettings;
|
||||||
StudioService.instance.AddTypeIdListener("AGV");
|
prf_AGV = assets[type].loadedObject;
|
||||||
|
if (prf_AGV == null)
|
||||||
|
{
|
||||||
|
//todo::팝업메시지 나주엥 설정....
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
StudioService.instance.AddTypeListener(type, OnDataUpdate);
|
||||||
|
StudioService.instance.AddTypeIdListener(type);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// MQTT
|
/// MQTT
|
||||||
|
|||||||
Reference in New Issue
Block a user