Hi there, I am having some trouble with this :
I play an animation, and i want to know which animation is played at the end, but GetCurAnim is giving me an error
Here some code to make this more clear
playerSprite.SetAnimCompleteDelegate( MyDelegate );
playerSprite.PlayAnim( 5 ) ;
void MyDelegate(SpriteBase sprt )
{
//**Error
//UVAnimation xxx = sprt.GetCurAnim() ;
Debug.Log( sprt + " just finished playing its animation");
}
Any idea how can i get which animation is completed?
Cheers
Roberto