示例#1
0
        public static MySprite1 Create(string pszSpriteFrameName)
        {
            CCSpriteFrame pFrame = CCSpriteFrameCache.SharedSpriteFrameCache.SpriteFrameByName(pszSpriteFrameName);
            MySprite1 pobSprite = new MySprite1();
            pobSprite.InitWithSpriteFrame(pFrame);

            return pobSprite;
        }
示例#2
0
        public static MySprite1 Create(string pszSpriteFrameName)
        {
            CCSpriteFrame pFrame    = CCSpriteFrameCache.SharedSpriteFrameCache.SpriteFrameByName(pszSpriteFrameName);
            MySprite1     pobSprite = new MySprite1();

            pobSprite.InitWithSpriteFrame(pFrame);

            return(pobSprite);
        }