Add init function to the SkeletonAnimation class.