Esempio n. 1
0
        public static ProdFlagshipWreck Instantiate(ProdFlagshipWreck prefab, Transform parent, ShipModel_BattleAll flagShip, DeckModel deck, KeyControl input, bool isBattleCut)
        {
            ProdFlagshipWreck prodFlagshipWreck = UnityEngine.Object.Instantiate(prefab);

            prodFlagshipWreck.transform.parent        = parent;
            prodFlagshipWreck.transform.localPosition = Vector3.zero;
            prodFlagshipWreck.transform.localScale    = Vector3.zero;
            prodFlagshipWreck._init(flagShip, deck, input, isBattleCut);
            return(prodFlagshipWreck);
        }
Esempio n. 2
0
        public static ProdFlagshipWreck Instantiate(ProdFlagshipWreck prefab, Transform parent, ShipModel_BattleAll flagShip, DeckModel deck, KeyControl input, bool isBattleCut)
        {
            ProdFlagshipWreck prodFlagshipWreck = Object.Instantiate <ProdFlagshipWreck>(prefab);

            prodFlagshipWreck.get_transform().set_parent(parent);
            prodFlagshipWreck.get_transform().set_localPosition(Vector3.get_zero());
            prodFlagshipWreck.get_transform().set_localScale(Vector3.get_zero());
            prodFlagshipWreck._init(flagShip, deck, input, isBattleCut);
            return(prodFlagshipWreck);
        }