public static ProdBattleEnd Instantiate(ProdBattleEnd prefab, Transform parent) { ProdBattleEnd prodBattleEnd = Object.Instantiate <ProdBattleEnd>(prefab); prodBattleEnd.get_transform().set_parent(parent); prodBattleEnd.get_transform().localPositionZero(); prodBattleEnd.get_transform().localScaleOne(); return(prodBattleEnd); }
public override bool Init(object data) { BattleCutManager.SetTitleText(BattleCutPhase.Battle_End); ProdBattleEnd prodBattleEnd = ProdBattleEnd.Instantiate(BattleCutManager.GetPrefabFile().prefabProdBattleEnd.GetComponent <ProdBattleEnd>(), BattleCutManager.GetSharedPlase()); prodBattleEnd.Play(delegate { BattleDefines.SOUND_KEEP.BGMVolume = SingletonMonoBehaviour <SoundManager> .Instance.soundVolume.BGM; SingletonMonoBehaviour <SoundManager> .Instance.soundVolume.BGM = BattleDefines.SOUND_KEEP.BGMVolume * 0.5f; SingletonMonoBehaviour <SoundManager> .Instance.rawBGMVolume = BattleDefines.SOUND_KEEP.BGMVolume * 0.5f; this._prodWinRunkJudge = ProdWinRankJudge.Instantiate(BattleCutManager.GetPrefabFile().prefabProdWinRunkJudge.GetComponent <ProdWinRankJudge>(), BattleCutManager.GetSharedPlase(), BattleCutManager.GetBattleManager().GetBattleResult(), true); Observable.FromCoroutine(new Func <IEnumerator>(this._prodWinRunkJudge.StartBattleJudge), false).Subscribe(delegate(Unit _) { BattleCutManager.ReqPhase(BattleCutPhase.Result); }); }); return(false); }