Beispiel #1
0
        public static ProdRevampReceiveItem Instantiate(ProdRevampReceiveItem prefab, Transform parent, SlotitemModel_Mst from, SlotitemModel_Mst to, int nPanelDepth, bool useJukuren, KeyControl input)
        {
            ProdRevampReceiveItem component = NGUITools.AddChild(parent.gameObject, prefab.gameObject).GetComponent <ProdRevampReceiveItem>();

            component.mSlotItemFrom = from;
            component.mSlotItemTo   = to;
            component._isUseJukuren = useJukuren;
            component._setRewardItem();
            component._uiRareBG.alpha                = 0f;
            component._uiRareBG.mainTexture          = TextureFile.LoadRareBG(1);
            component.GetComponent <UIPanel>().depth = nPanelDepth;
            component._clsInput = input;
            component.SetJukuren(useJukuren);
            return(component);
        }
Beispiel #2
0
 public static ProdRevampReceiveItem Instantiate(ProdRevampReceiveItem prefab, Transform parent, IReward_Slotitem from, IReward_Slotitem to, int nPanelDepth, bool useJukuren, KeyControl input)
 {
     return(Instantiate(prefab, parent, new SlotitemModel_Mst(from.Id), new SlotitemModel_Mst(to.Id), nPanelDepth, useJukuren, input));
 }