protected virtual CCAnimation ParsePropTypeAnimation(CCNode node, CCNode parent, CCBReader reader) { string animationFile = reader.ReadCachedString(); string animation = reader.ReadCachedString(); CCAnimation ccAnimation = null; // Support for stripping relative file paths, since ios doesn't currently // know what to do with them, since its pulling from bundle. // Eventually this should be handled by a client side asset manager // interface which figured out what resources to load. // TODO Does this problem exist in C++? animation = CCBReader.LastPathComponent(animation); animationFile = CCBReader.LastPathComponent(animationFile); if (!String.IsNullOrEmpty(animation)) { CCAnimationCache animationCache = CCAnimationCache.SharedAnimationCache; animationCache.AddAnimationsWithFile(animationFile); ccAnimation = animationCache.AnimationByName(animation); } return(ccAnimation); }