Merge branch 'master' into LouDi_Quan
This commit is contained in:
commit
95ac8d00ad
@ -37,7 +37,7 @@ public class StateMachineController : MonoSingleton<StateMachineController>
|
|||||||
|
|
||||||
private void OnStart(OnModuleStart start)
|
private void OnStart(OnModuleStart start)
|
||||||
{
|
{
|
||||||
foreach (var item in Global.Instance.appData.Modules[0].FSM)
|
foreach (var item in Global.Instance.curModule.FSM)
|
||||||
{
|
{
|
||||||
FSM<string> fsm = new FSM<string>();
|
FSM<string> fsm = new FSM<string>();
|
||||||
var fsmInfo = new FsmInfo();
|
var fsmInfo = new FsmInfo();
|
||||||
|
|||||||
@ -44,6 +44,11 @@ namespace QFramework.Example
|
|||||||
foreach (var device in mData.devices)
|
foreach (var device in mData.devices)
|
||||||
{
|
{
|
||||||
var item = DeviceController.Instance.GetDevice(device);
|
var item = DeviceController.Instance.GetDevice(device);
|
||||||
|
if (item==null)
|
||||||
|
{
|
||||||
|
Debug.LogError(device + ":没有找到对应的Device配置");
|
||||||
|
return;
|
||||||
|
}
|
||||||
GameObject obj = GameObject.Instantiate(ItemPrefab.gameObject, Content);
|
GameObject obj = GameObject.Instantiate(ItemPrefab.gameObject, Content);
|
||||||
obj.name = item.Name;
|
obj.name = item.Name;
|
||||||
obj.transform.Find("Name").GetComponent<TextMeshProUGUI>().text = item.Name;
|
obj.transform.Find("Name").GetComponent<TextMeshProUGUI>().text = item.Name;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user