I want the items on the list to be executed in order.
List<string> animation start
var spineAnimationStartNameList = new List<string>{
"animation_name_1",
"animation_name_2",
"animation_name_3",
// AND MORE ANIMATION..
}
skeletonAnimation.state.SetAnimation(0, spineAnimationStartNameList [0], true);
for(var i = 1 ; i< spineAnimationStartNameList .Length-1;i++)
{
skeletonAnimation.state.AddAnimation(i, spineAnimationStartNameList , false,1.5f);
}
I want the items on the list to be executed in order.
But, it is being implemented at the same time.
How do I perform in order?
Thanks.