Hello 2D Toolkit users,
I have a query for you. I am changing my animated sprites library at run time but instead of changing to the library like I want it to it is setting the library to DemoAnimations instead?
I am not sure what I am doing wrong but perhaps I need to have my folders structured inside the TK2D root folders?
The code I am using for this is as follows:
void changeLibrary()
{
Destroy(this);
gameObject.AddComponent("Base_Interaction");
getUpSprite.Library = Resources.Load("MovementLib", typeof(tk2dSpriteAnimation)) as tk2dSpriteAnimation;;
}
Any help would be awesome!
Cheers guys
Benjam