Пример #1
0
        public static ProdUnderwayReplenishment Instantiate(ProdUnderwayReplenishment prefab, Transform parent, MapSupplyModel model)
        {
            ProdUnderwayReplenishment prodUnderwayReplenishment = UnityEngine.Object.Instantiate(prefab);

            prodUnderwayReplenishment.transform.parent = parent;
            prodUnderwayReplenishment.transform.localScaleOne();
            prodUnderwayReplenishment.transform.localPositionZero();
            prodUnderwayReplenishment.Init(model);
            return(prodUnderwayReplenishment);
        }
        public static ProdUnderwayReplenishment Instantiate(ProdUnderwayReplenishment prefab, Transform parent, MapSupplyModel model)
        {
            ProdUnderwayReplenishment prodUnderwayReplenishment = Object.Instantiate <ProdUnderwayReplenishment>(prefab);

            prodUnderwayReplenishment.get_transform().set_parent(parent);
            prodUnderwayReplenishment.get_transform().localScaleOne();
            prodUnderwayReplenishment.get_transform().localPositionZero();
            prodUnderwayReplenishment.Init(model);
            return(prodUnderwayReplenishment);
        }