public static ProdCombatRation Instantiate(ProdCombatRation prefab, Transform parent, RationModel model) { ProdCombatRation prodCombatRation = UnityEngine.Object.Instantiate(prefab); prodCombatRation.transform.parent = parent; prodCombatRation.transform.localScaleZero(); prodCombatRation.transform.localPositionZero(); prodCombatRation.Init(model); return(prodCombatRation); }
public static ProdCombatRation Instantiate(ProdCombatRation prefab, Transform parent, RationModel model) { ProdCombatRation prodCombatRation = Object.Instantiate <ProdCombatRation>(prefab); prodCombatRation.get_transform().set_parent(parent); prodCombatRation.get_transform().localScaleZero(); prodCombatRation.get_transform().localPositionZero(); prodCombatRation.Init(model); return(prodCombatRation); }