public void Init(GoodsType goods, Vector3 pos, Vector3 startPos, RewardEffectUi parent, TokenUI tokenUI)
        {
            this.goods = goods;
            m_Parent   = parent;
            m_TokenUi  = tokenUI;

            InitIcon(goods);

            GetComponent <RectTransform>().position = startPos;
            gameObject.SetActive(true);
            InitLockPos(goods, pos);
        }
Exemplo n.º 2
0
        public void Init(Vector3 pos, Vector3 startPos, RewardEffectUi parent, CommonUI commonUI)
        {
            //this.goods = goods;
            m_Parent   = parent;
            m_CommonUI = commonUI;

            //InitIcon(goods);

            GetComponent <RectTransform>().position = startPos;
            gameObject.SetActive(true);
            InitLockPos(goods, pos);
        }