This code:
if (genIcon.ClipTimeSeconds != 0)
{
genIcon.Resume();
}
is causing this error:
NullReferenceException: Object reference not set to an instance of an object
tk2dAnimatedSprite.get_ClipTimeSeconds () (at Assets/Plugins/tk2d/Sprites/tk2dAnimatedSprite.cs:198)
touchControls.Update () (at Assets/Scripts/touchControls.js:315)
I am pretty confident that genIcon is indeed pointing to a valid td2kAnimatedSprite object. The script appears to be working exactly like I want it to, but it's firing off this error once per frame, clogging up my console. Anyone have any ideas why?