I'm stuck 🙁
I want to play an animation as long as the user presses on the animation.
so i guess i have to use state.Update and Apply. But how?
Can someone point me in the right direction?
float animationTime;
SkeletonAnimation animation;
void Start ()
{
animation = GetComponent<SkeletonAnimation>();
}
void OnMouseDrag()
{
//animationTime += Time.deltaTime;
//animation.state.Update(animationTime);
//animation.state.Apply (skeleton);
}