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