Beispiel #1
0
        public static ProdRewardGet Instantiate(ProdRewardGet prefab, Transform parent, int nPanelDepth, RewardType iType)
        {
            ProdRewardGet prodRewardGet = Object.Instantiate(prefab);

            prodRewardGet.transform.parent        = parent;
            prodRewardGet.transform.localScale    = Vector3.one;
            prodRewardGet.transform.localPosition = Vector3.zero;
            prodRewardGet._uiPanel.depth          = nPanelDepth;
            return(prodRewardGet);
        }
        public static ProdRewardGet Instantiate(ProdRewardGet prefab, Transform parent, int nPanelDepth, ProdRewardGet.RewardType iType)
        {
            ProdRewardGet prodRewardGet = Object.Instantiate <ProdRewardGet>(prefab);

            prodRewardGet.get_transform().set_parent(parent);
            prodRewardGet.get_transform().set_localScale(Vector3.get_one());
            prodRewardGet.get_transform().set_localPosition(Vector3.get_zero());
            prodRewardGet._uiPanel.depth = nPanelDepth;
            return(prodRewardGet);
        }