コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }