private IEnumerator CreateBCAdvancingWithdrawalDC(IObserver <ProdBCAdvancingWithdrawalDC> observer)
        {
            _prodBCAdvancingWithdrawalDC = ProdBCAdvancingWithdrawalDC.Instantiate(((Component)BattleCutManager.GetPrefabFile().prefabProdBCAdvancingWithdrawalDC).GetComponent <ProdBCAdvancingWithdrawalDC>(), BattleCutManager.GetSharedPlase(), BattleCutManager.GetBattleManager().Ships_f[0], BattleCutManager.GetBattleType());
            yield return(null);

            observer.OnNext(_prodBCAdvancingWithdrawalDC);
            observer.OnCompleted();
        }
예제 #2
0
        public static ProdBCAdvancingWithdrawalDC Instantiate(ProdBCAdvancingWithdrawalDC prefab, Transform parent, ShipModel_BattleAll flagShip, Generics.BattleRootType iRootType)
        {
            ProdBCAdvancingWithdrawalDC prodBCAdvancingWithdrawalDC = Object.Instantiate <ProdBCAdvancingWithdrawalDC>(prefab);

            prodBCAdvancingWithdrawalDC.get_transform().set_parent(parent);
            prodBCAdvancingWithdrawalDC.get_transform().localScaleOne();
            prodBCAdvancingWithdrawalDC.get_transform().localPositionZero();
            prodBCAdvancingWithdrawalDC.Init(flagShip, iRootType);
            return(prodBCAdvancingWithdrawalDC);
        }
        public static ProdBCAdvancingWithdrawalDC Instantiate(ProdBCAdvancingWithdrawalDC prefab, Transform parent, ShipModel_BattleAll flagShip, Generics.BattleRootType iRootType)
        {
            ProdBCAdvancingWithdrawalDC prodBCAdvancingWithdrawalDC = UnityEngine.Object.Instantiate(prefab);

            prodBCAdvancingWithdrawalDC.transform.parent = parent;
            prodBCAdvancingWithdrawalDC.transform.localScaleOne();
            prodBCAdvancingWithdrawalDC.transform.localPositionZero();
            prodBCAdvancingWithdrawalDC.Init(flagShip, iRootType);
            return(prodBCAdvancingWithdrawalDC);
        }