1
Support / Re: Dragging an instantiated item
« on: July 02, 2015, 10:46:00 pm »
We are using 2.4.0.
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.
public void AddItemToList(tk2dUIItem item)
{
prevPressedUIItemList.Add(item);
}
public void LoadAndPlayAnimation(string animationName)
{
animator.Stop();
string animationPath = resourcesDirectory + animationName + "_Animation";
loadedAnimationLibrary = Resources.Load<tk2dSpriteAnimation>(animationPath);
animator.Library = loadedAnimationLibrary;
animator.Play(animationName);
}