public static ProdFormationSelect Instantiate(ProdFormationSelect prefab, Transform parent, DeckModel model) { ProdFormationSelect prodFormationSelect = Object.Instantiate <ProdFormationSelect>(prefab); prodFormationSelect.get_transform().set_parent(parent); prodFormationSelect.get_transform().localScaleOne(); prodFormationSelect.get_transform().localPositionZero(); prodFormationSelect.Init(model); return(prodFormationSelect); }
public static ProdFormationSelect Instantiate(ProdFormationSelect prefab, Transform parent, DeckModel model) { ProdFormationSelect prodFormationSelect = UnityEngine.Object.Instantiate(prefab); prodFormationSelect.transform.parent = parent; prodFormationSelect.transform.localScaleOne(); prodFormationSelect.transform.localPositionZero(); prodFormationSelect.Init(model); return(prodFormationSelect); }