/// <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); }
/// <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; }