Example #1
0
        public static ProdDeathCry Instantiate(ProdDeathCry prefab, Transform parent, ShipModel_BattleAll model)
        {
            ProdDeathCry prodDeathCry = UnityEngine.Object.Instantiate(prefab);

            prodDeathCry.transform.parent = parent;
            prodDeathCry.transform.localPositionZero();
            prodDeathCry.transform.localScaleZero();
            prodDeathCry.Init(model);
            return(prodDeathCry);
        }
Example #2
0
        public static ProdDeathCry Instantiate(ProdDeathCry prefab, Transform parent, ShipModel_BattleAll model)
        {
            ProdDeathCry prodDeathCry = Object.Instantiate <ProdDeathCry>(prefab);

            prodDeathCry.get_transform().set_parent(parent);
            prodDeathCry.get_transform().localPositionZero();
            prodDeathCry.get_transform().localScaleZero();
            prodDeathCry.Init(model);
            return(prodDeathCry);
        }