public static ProdBCBattle Instantiate(ProdBCBattle prefab, Transform parent) { ProdBCBattle prodBCBattle = UnityEngine.Object.Instantiate(prefab); prodBCBattle.transform.parent = parent; prodBCBattle.transform.localScaleOne(); prodBCBattle.transform.localPositionZero(); return(prodBCBattle); }
public static ProdBCBattle Instantiate(ProdBCBattle prefab, Transform parent) { ProdBCBattle prodBCBattle = Object.Instantiate <ProdBCBattle>(prefab); prodBCBattle.get_transform().set_parent(parent); prodBCBattle.get_transform().localScaleOne(); prodBCBattle.get_transform().localPositionZero(); return(prodBCBattle); }
private IEnumerator CreateBCBattle(UniRx.IObserver <ProdBCBattle> observer) { if (_prodBCBattle == null) { _prodBCBattle = ProdBCBattle.Instantiate(((Component)BattleCutManager.GetPrefabFile().prefabProdBCBattle).GetComponent <ProdBCBattle>(), BattleCutManager.GetSharedPlase()); } yield return(null); observer.OnNext(_prodBCBattle); observer.OnCompleted(); }