public static ProdSupportShelling Instantiate(ProdSupportShelling prefab, ShienModel_Hou model, Transform parent) { ProdSupportShelling prodSupportShelling = UnityEngine.Object.Instantiate(prefab); prodSupportShelling.transform.parent = parent; prodSupportShelling.transform.localPosition = Vector3.zero; prodSupportShelling.transform.localScale = Vector3.one; prodSupportShelling._clsShelling = model; prodSupportShelling._init(); return(prodSupportShelling); }
public static ProdSupportShelling Instantiate(ProdSupportShelling prefab, ShienModel_Hou model, Transform parent) { ProdSupportShelling prodSupportShelling = Object.Instantiate <ProdSupportShelling>(prefab); prodSupportShelling.get_transform().set_parent(parent); prodSupportShelling.get_transform().set_localPosition(Vector3.get_zero()); prodSupportShelling.get_transform().set_localScale(Vector3.get_one()); prodSupportShelling._clsShelling = model; prodSupportShelling._init(); return(prodSupportShelling); }