Ejemplo n.º 1
0
    protected void CloneFromTpl()
    {
        if (this.m_SpriteAnimationType <= 0)
        {
            return;
        }
        GameObject tpl = this.m_gameui.spriteTpl[this.m_SpriteAnimationType - 1];

        XUICommon.CloneTplTweens(tpl, base.gameObject);
    }
Ejemplo n.º 2
0
    protected void CloneFromTpl()
    {
        if (this.m_ButtonAnimationType <= 0)
        {
            return;
        }
        GameObject gameObject = this.m_gameui.buttonTpl[this.m_ButtonAnimationType - 1];

        XUICommon.CloneTplTweens(gameObject, base.gameObject);
        if (this.m_useSprite)
        {
            UISprite component  = gameObject.GetComponent <UISprite>();
            UIButton component2 = gameObject.GetComponent <UIButton>();
            UISprite component3 = base.gameObject.GetComponent <UISprite>();
            UIButton component4 = base.gameObject.GetComponent <UIButton>();
            component3.spriteName    = component.spriteName;
            component4.normalSprite  = component2.normalSprite;
            component4.hoverSprite   = component2.hoverSprite;
            component4.pressedSprite = component2.pressedSprite;
        }
    }