public void initWithImageNamed(string imageName)
{
gameObject.name = imageName;
CCSpriteFrame frame = CCSpriteFrameCache.sharedSpriteFrameCache.spriteFrameByName(imageName);
if (frame == null)
{
CCDebug.Info("cocos2d:CC3Sprite: try to load '{0}' as a file.", imageName);
string path = FileUtils.GetFilePathWithoutExtends(imageName);
Texture2D texture = Resources.Load <Texture2D> (path);
NSUtils.Assert(texture != null, "cocos2d:CC3Sprite: '{0}' not found.", path);
frame = new CCSpriteFrame(texture, new Rect(Vector2.zero, new Vector2(texture.width, texture.height)));
frame.semiTransparent = false;
}
initWithSpriteFrame(frame);
}