private IEnumerator CreateAdvancingWithdrawal(IObserver <ProdBCAdvancingWithdrawal> observer)
        {
            _prodBCAdvancingWithdrawal = ProdBCAdvancingWithdrawal.Instantiate(((Component)BattleCutManager.GetPrefabFile().prefabProdBCAdvancingWithdrawal).GetComponent <ProdBCAdvancingWithdrawal>(), BattleCutManager.GetSharedPlase(), BattleCutManager.GetBattleType());
            yield return(null);

            observer.OnNext(_prodBCAdvancingWithdrawal);
            observer.OnCompleted();
        }
Example #2
0
 public static ProdBCAdvancingWithdrawal Instantiate(ProdBCAdvancingWithdrawal prefab, Transform parent, Generics.BattleRootType iType)
 {
     ProdBCAdvancingWithdrawal prodBCAdvancingWithdrawal = UnityEngine.Object.Instantiate(prefab);
     prodBCAdvancingWithdrawal.transform.parent = parent;
     prodBCAdvancingWithdrawal.transform.localPositionZero();
     prodBCAdvancingWithdrawal.transform.localScaleOne();
     prodBCAdvancingWithdrawal.Init(iType);
     return prodBCAdvancingWithdrawal;
 }
        public static ProdBCAdvancingWithdrawal Instantiate(ProdBCAdvancingWithdrawal prefab, Transform parent, Generics.BattleRootType iType)
        {
            ProdBCAdvancingWithdrawal prodBCAdvancingWithdrawal = Object.Instantiate <ProdBCAdvancingWithdrawal>(prefab);

            prodBCAdvancingWithdrawal.get_transform().set_parent(parent);
            prodBCAdvancingWithdrawal.get_transform().localPositionZero();
            prodBCAdvancingWithdrawal.get_transform().localScaleOne();
            prodBCAdvancingWithdrawal.Init(iType);
            return(prodBCAdvancingWithdrawal);
        }