【剧情】修正索引bug

main
刘涛 2024-08-15 15:05:53 +08:00
parent 5591c75d4d
commit 65fc2bdc60
2 changed files with 4 additions and 3 deletions

View File

@ -120,7 +120,7 @@ namespace Gameplay.Story
isNotRoot = false;
break;
}
combinePath += workTrans.name + "/";
combinePath = workTrans.name + "/" + combinePath;
workTrans = workTrans.parent;
}
if (isNotRoot)
@ -128,6 +128,7 @@ namespace Gameplay.Story
Debug.LogError("路径不在StoryManager下面");
return "";
}
Debug.Log("full path:" + combinePath);
return combinePath;
}

View File

@ -18,12 +18,12 @@ namespace Gameplay.Story.Cmp.Timeline.CommonAction
}
var searchTrans = StoryManager.instance.SearchTrans(clipAsset.objFullPath);
var obj = searchTrans.gameObject;
if (obj == null)
if (searchTrans == null)
{
clip.displayName = "未指定控制对象";
return;
}
var obj = searchTrans.gameObject;
var actionType = clipAsset.actionType;
switch (actionType)