2D Toolkit Forum
2D Toolkit => Support => Topic started by: TinSleeves on July 11, 2013, 05:04:42 pm
-
I just updated to 2.0 I get one error (pretty good going)
Basically in my game the player can mutate into different characters so I was just switching out my animated sprite using the following code
playerSprite.anim = (tk2dSpriteAnimation)Resources.Load ("player2Anim", typeof(tk2dSpriteAnimation));
but now i get the following error
Assets/Scripts/playerNEW.cs(194,30): error CS0122: `tk2dAnimatedSprite.anim' is inaccessible due to its protection level
Is there a way round this?
-
Thats covered in the migration guide:
http://unikronsoftware.com/2dtoolkit/doc/2.00/migration_guide.html
.anim is now .Library
-
Awesome thanks, I missed that