private IEnumerator CreateAerialCombatCutIn(IObserver <bool> observer) { BattleCameras cams = BattleTaskManager.GetBattleCameras(); BattleCutInCamera cam = cams.cutInCamera; cam.isCulling = true; _prodAerialCutinP = ProdAerialCombatCutinP.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdAerialCombatCutinP).GetComponent <ProdAerialCombatCutinP>(), _clsKoukuu, cam.transform); yield return(new WaitForEndOfFrame()); _prodAerialCombatP1 = ProdAerialCombatP1.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdAerialCombatP1).GetComponent <ProdAerialCombatP1>(), _clsKoukuu, cam.transform.parent, _prodAerialCutinP._chkCutInType()); _prodAerialCombatP1.gameObject.SetActive(false); yield return(new WaitForEndOfFrame()); _prodAerialCombatP2 = ProdAerialCombatP2.Instantiate(PrefabFile.Load <ProdAerialCombatP2>(PrefabFileInfos.BattleProdAerialCombatP2), _clsKoukuu, cam.transform); _prodAerialCombatP2.gameObject.SetActive(false); yield return(new WaitForEndOfFrame()); _prodAerialCombatP2.CreateHpGauge(FleetType.Friend); yield return(new WaitForEndOfFrame()); _prodAerialTouchPlane = ProdAerialTouchPlane.Instantiate(Resources.Load <ProdAerialTouchPlane>("Prefabs/Battle/Production/AerialCombat/ProdAerialTouchPlane"), cam.transform); _prodAerialTouchPlane.transform.localPosition = Vector3.zero; _prodAerialTouchPlane.SetActive(isActive: false); observer.OnNext(value: true); observer.OnCompleted(); }
private bool _initAerialSecondCutIn(object data) { BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); BattleCutInCamera cutInCamera = battleCameras.cutInCamera; cutInCamera.isCulling = true; _prodAerialSecondP1 = ProdAerialCombatP1.Instantiate(iType: (_clsKoukuu2.GetCaptainShip(is_friend: true) != null && _clsKoukuu2.GetCaptainShip(is_friend: false) != null) ? CutInType.Both : ((_clsKoukuu2.GetCaptainShip(is_friend: true) == null) ? CutInType.EnemyOnly : CutInType.FriendOnly), prefab: PrefabFile.Load <ProdAerialCombatP1>(PrefabFileInfos.BattleProdAerialCombatP1), model: _clsKoukuu2, parent: cutInCamera.transform.parent); _prodAerialSecondP1.gameObject.SetActive(false); _prodAerialSecondP2 = ProdAerialCombatP2.Instantiate(PrefabFile.Load <ProdAerialCombatP2>(PrefabFileInfos.BattleProdAerialCombatP2), _clsKoukuu2, cutInCamera.transform); _prodAerialSecondP2.CreateHpGauge(FleetType.Friend); _prodAerialSecondP2.gameObject.SetActive(false); _onAerialSecondCutInFinished(); return(false); }
private bool _initAerialCombatCutIn(object data) { BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); BattleCutInCamera cutInCamera = battleCameras.cutInCamera; cutInCamera.isCulling = true; _prodAerialCutinP = ProdAerialSecondCutIn.Instantiate(PrefabFile.Load <ProdAerialSecondCutIn>(PrefabFileInfos.BattleProdAerialSecondCutIn), _clsKoukuu1, cutInCamera.transform); _prodAerialCombatP1 = ProdAerialCombatP1.Instantiate(PrefabFile.Load <ProdAerialCombatP1>(PrefabFileInfos.BattleProdAerialCombatP1), _clsKoukuu1, cutInCamera.transform.parent, _prodAerialCutinP._chkCutInType()); _prodAerialCombatP1.gameObject.SetActive(false); _prodAerialCombatP2 = ProdAerialCombatP2.Instantiate(PrefabFile.Load <ProdAerialCombatP2>(PrefabFileInfos.BattleProdAerialCombatP2), _clsKoukuu1, cutInCamera.transform); _prodAerialCombatP2.CreateHpGauge(FleetType.Friend); _prodAerialCombatP2.gameObject.SetActive(false); _prodAerialCutinP.Play(_onAerialCombatCutInFinished); return(false); }