Пример #1
0
        /// <summary>
        /// Creates an sprite with an sprite frame.
        /// </summary>
        public static CCSprite spriteWithSpriteFrame(CCSpriteFrame pSpriteFrame)
        {
            CCSprite pobSprite = new CCSprite();

            if (pobSprite != null && pobSprite.initWithSpriteFrame(pSpriteFrame))
            {
                return(pobSprite);
            }
            return(null);
        }
Пример #2
0
 /// <summary>
 /// Creates an sprite with an sprite frame.
 /// </summary>
 public static CCSprite spriteWithSpriteFrame(CCSpriteFrame pSpriteFrame)
 {
     CCSprite pobSprite = new CCSprite();
     if (pobSprite != null && pobSprite.initWithSpriteFrame(pSpriteFrame))
     {
         return pobSprite;
     }
     return null;
 }