BBGamelib.CCSprite.initWithImageNamed C# (CSharp) Method

initWithImageNamed() public method

public initWithImageNamed ( string imageName ) : void
imageName string
return void
		public void initWithImageNamed(string imageName){
			gameObject.name = imageName;
			CCSpriteFrame frame = CCSpriteFrameCache.sharedSpriteFrameCache.spriteFrameByName (imageName);
			if (frame == null) {
				CCDebug.Info("cocos2d:CCSprite: Try to load '{0}' as a file.", imageName);
				frame = new CCSpriteFrame (imageName);
			}
			initWithSpriteFrame (frame);
		}