添加容错
This commit is contained in:
parent
55d5d06505
commit
8231fc3cc5
@ -251,6 +251,7 @@ namespace BF
|
||||
{
|
||||
List<float> times = new List<float>();
|
||||
var animation = skeletonGraphic.skeletonDataAsset.GetAnimationStateData().SkeletonData.FindAnimation(name);
|
||||
if (animation != null){
|
||||
foreach (var timeline in animation.Timelines)
|
||||
{
|
||||
var eventTimeline = timeline as Spine.EventTimeline;
|
||||
@ -262,6 +263,8 @@ namespace BF
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return times;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user