public static MySprite1 Create(string pszSpriteFrameName) { CCSpriteFrame pFrame = CCSpriteFrameCache.SharedSpriteFrameCache.SpriteFrameByName(pszSpriteFrameName); MySprite1 pobSprite = new MySprite1(); pobSprite.InitWithSpriteFrame(pFrame); return pobSprite; }
public static MySprite1 Create(string pszSpriteFrameName) { CCSpriteFrame pFrame = CCSpriteFrameCache.SharedSpriteFrameCache.SpriteFrameByName(pszSpriteFrameName); MySprite1 pobSprite = new MySprite1(); pobSprite.InitWithSpriteFrame(pFrame); return(pobSprite); }