Пример #1
0
        public static ProdSupportCutIn Instantiate(ProdSupportCutIn prefab, IShienModel model, Transform parent)
        {
            ProdSupportCutIn prodSupportCutIn = Object.Instantiate <ProdSupportCutIn>(prefab);

            prodSupportCutIn._clsSupport = model;
            prodSupportCutIn.get_transform().set_parent(parent);
            prodSupportCutIn.get_transform().set_localPosition(Vector3.get_zero());
            prodSupportCutIn.get_transform().set_localScale(Vector3.get_one());
            return(prodSupportCutIn);
        }
Пример #2
0
        public static ProdSupportCutIn Instantiate(ProdSupportCutIn prefab, IShienModel model, Transform parent)
        {
            ProdSupportCutIn prodSupportCutIn = UnityEngine.Object.Instantiate(prefab);

            prodSupportCutIn._clsSupport             = model;
            prodSupportCutIn.transform.parent        = parent;
            prodSupportCutIn.transform.localPosition = Vector3.zero;
            prodSupportCutIn.transform.localScale    = Vector3.one;
            return(prodSupportCutIn);
        }