Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vincent

Pages: [1]
1
Support / 2D Toolkit2.0 AnimationEventTriggered Not Working
« on: September 29, 2013, 07:29:39 am »
Here is my code:

axeObj.AddComponent<tk2dSprite>();
tk2dSpriteAnimator axeAnimator = axeObj.AddComponent<tk2dSpriteAnimator>();
axeAnimator.Library = Resources.Load("GameResultAnim/GameResult_Axe_Animation", typeof(tk2dSpriteAnimation)) as tk2dSpriteAnimation;
axeAnimator.Play("Axe");
axeAnimator.AnimationEventTriggered = delegate {
   Debug.Log("xxxxxxxxxxxxxxx");
};

While AnimationEventTriggered is not Working , AnimationCompleted worked well. So please help me !

Pages: [1]