Вопрос по 2dtoolkit.
Синтаксис:
Используется csharp
...
unitAnim.animationEventDelegate = this.animationCompleteTank;
...
void animationCompleteTank(tk2dAnimatedSprite sprite, tk2dSpriteAnimationClip clip, tk2dSpriteAnimationFrame frame, int frameNum) {
Debug.Log("On Bug Animation Complete");
string str = sprite.name + "\n" + clip.name + "\n" + "INFO: " + frame.eventInfo;
Debug.Log("INFO: "+ str);
}
unitAnim.animationEventDelegate = this.animationCompleteTank;
...
void animationCompleteTank(tk2dAnimatedSprite sprite, tk2dSpriteAnimationClip clip, tk2dSpriteAnimationFrame frame, int frameNum) {
Debug.Log("On Bug Animation Complete");
string str = sprite.name + "\n" + clip.name + "\n" + "INFO: " + frame.eventInfo;
Debug.Log("INFO: "+ str);
}
В логе получаем только - clip.name, а очень нужен frame.eventInfo !
Может кто сталкивался помогите !