【剧情】修正索引bug
parent
5591c75d4d
commit
65fc2bdc60
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue