Example #1
0
    // Token: 0x06004A92 RID: 19090 RVA: 0x00120878 File Offset: 0x0011EA78
    public static global::UISprite AddSprite(GameObject go, global::UIAtlas atlas, string spriteName)
    {
        global::UIAtlas.Sprite sprite   = (!(atlas != null)) ? null : atlas.GetSprite(spriteName);
        global::UISprite       uisprite = (sprite != null && !(sprite.inner == sprite.outer)) ? global::NGUITools.AddWidget <global::UISlicedSprite>(go) : global::NGUITools.AddWidget <global::UISprite>(go);

        uisprite.atlas      = atlas;
        uisprite.spriteName = spriteName;
        return(uisprite);
    }