public void Play(DamageCutInType iType, Action onStart, Action onFinished) { if (!isPlaying) { _iType = iType; panel.widgetsAreStatic = false; base.transform.localScale = Vector3.one; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.enabled = true; cutInEffectCamera.motionBlur.blurAmount = 0.3f; cutInEffectCamera.glowEffect.enabled = false; cutInEffectCamera.isCulling = true; _traShips.localPositionZero(); DamageCutInList damageCutInList = (_iType != 0) ? DamageCutInList.ProdDamageCutInHeavyFirst : DamageCutInList.ProdDamageCutInModerateFirst; if (_iType == DamageCutInType.Moderate) { ((Component)_psModerateSmoke).SetActive(isActive: true); _psModerateSmoke.Play(); } else { ((Component)_psHeavyBack).SetActive(isActive: true); _psHeavyBack.Play(); } Dlg.Call(ref onStart); base.Play(damageCutInList, onFinished); } }
public void _startAntiAerialCutIn() { if (_koukuuModel.GetTaikuShip(is_friend: true) != null) { if (_prodAntiAerialCutIn == null) { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; _prodAntiAerialCutIn = ProdAntiAerialCutIn.Instantiate(Resources.Load <ProdAntiAerialCutIn>("Prefabs/Battle/Production/AerialCombat/ProdAntiAerialCutIn"), _koukuuModel, cutInEffectCamera.transform); } _prodAntiAerialCutIn.Play(_compAntiAerialCutInEnemy, isFriend: true); } else if (_koukuuModel.GetTaikuShip(is_friend: false) != null) { if (_prodAntiAerialCutIn == null) { BattleCutInEffectCamera cutInEffectCamera2 = BattleTaskManager.GetBattleCameras().cutInEffectCamera; _prodAntiAerialCutIn = ProdAntiAerialCutIn.Instantiate(Resources.Load <ProdAntiAerialCutIn>("Prefabs/Battle/Production/AerialCombat/ProdAntiAerialCutIn"), _koukuuModel, cutInEffectCamera2.transform); } _prodAntiAerialCutIn.Play(_compAntiAerialCutInEnemy, isFriend: false); } else { _compAntiAerialCutInEnemy(); } }
public UniRx.IObservable <bool> Play() { ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Executions(); BattleShips battleShips = BattleTaskManager.GetBattleShips(); battleShips.SetStandingPosition(StandingPositionType.CommandBuffer); BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); battleCameras.SetVerticalSplitCameras(isSplit: false); battleCameras.fieldDimCamera.maskAlpha = 0f; battleCameras.SwitchMainCamera(FleetType.Friend); BattleFieldCamera battleFieldCamera = battleCameras.fieldCameras[0]; battleFieldCamera.ReqViewMode(CameraActor.ViewMode.FixChasing); battleFieldCamera.pointOfGaze = Vector3.Lerp(BattleTaskManager.GetBattleField().dicFleetAnchor[FleetType.Friend].position, BattleTaskManager.GetBattleField().dicFleetAnchor[FleetType.Enemy].position, 0.8f); battleFieldCamera.vignetting.enabled = true; battleFieldCamera.glowEffect.enabled = true; battleShips.SetBollboardTarget(null); battleShips.SetLayer(Generics.Layers.ShipGirl); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UITexture component = ((Component)cutInEffectCamera.transform.FindChild("TorpedoLine/OverlayLine")).GetComponent <UITexture>(); if (component != null) { component.alpha = 0f; } Observable.NextFrame().Subscribe(delegate { CalcInitLineRotation(); PlayLineAnimation(); }); return(Observable.FromCoroutine((UniRx.IObserver <bool> observer) => AnimationObserver(observer))); }
protected override bool InitAttackerFocus(object data) { BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); BattleFieldCamera fieldCam = battleCameras.fieldCameras.get_Item(0); List <Vector3> camTargetPos = this.CalcCloseUpCamPos(fieldCam.get_transform().get_position(), this.CalcCamTargetPos(true, true), false); base.alterWaveDirection = this._listBattleShips.get_Item(0).fleetType; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_936); this.GraAddDimCameraMaskAlpha(BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_TIME.get_Item(0)); fieldCam.get_transform().LTMove(camTargetPos.get_Item(0), BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_TIME.get_Item(0)).setEase(BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_EASING_TYPE.get_Item(0)).setOnComplete(delegate { ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Register(delegate { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = false; this._prodTranscendenceCutIn.get_transform().localScaleZero(); }); this._prodTranscendenceCutIn.SetShellingData(this._clsHougekiModel); this._prodTranscendenceCutIn.Play(delegate { this.ChkAttackCntForNextPhase(); }); fieldCam.get_transform().LTMove(camTargetPos.get_Item(1), BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_TIME.get_Item(1)).setEase(LeanTweenType.linear); }); return(false); }
public override void Play(Action callback) { ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Executions(); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = true; base.get_transform().set_localScale(Vector3.get_one()); this._actCallback = callback; base.GetComponent <UIPanel>().widgetsAreStatic = false; if (this._iList == ProdTorpedoCutIn.AnimationList.None) { this.onAnimationFinishedAfterDiscard(); return; } base.Play(this._iList, callback); if (this._iList == ProdTorpedoCutIn.AnimationList.ProdTorpedoCutIn || this._iList == ProdTorpedoCutIn.AnimationList.TorpedoCutInFriend) { ShipUtils.PlayTorpedoVoice(this.getTorpedoCutInShip(this._clsRaigeki, true)); } else if (this._iList == ProdTorpedoCutIn.AnimationList.TorpedoCutInEnemy) { } }
protected override void onAnimationFinished() { ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Register(delegate { List <ParticleSystem> list = new List <ParticleSystem>(base.get_transform().GetComponentsInChildren <ParticleSystem>()); list.ForEach(delegate(ParticleSystem x) { x.SetActive(false); }); base.get_transform().localScaleZero(); this.panel.widgetsAreStatic = true; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; GameObject gameObject = cutInEffectCamera.get_transform().Find("TorpedoLine/OverlayLine").get_gameObject(); if (gameObject != null) { UITexture component = gameObject.GetComponent <UITexture>(); if (component != null && component.alpha <= 0.1f) { cutInEffectCamera.isCulling = false; } } cutInEffectCamera.motionBlur.set_enabled(false); cutInEffectCamera.blur.set_enabled(false); }); base.onAnimationFinished(); }
public void Play(ProdDamageCutIn.DamageCutInType iType, Action onStart, Action onFinished) { if (this.isPlaying) { return; } this._iType = iType; this.panel.widgetsAreStatic = false; base.get_transform().set_localScale(Vector3.get_one()); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.set_enabled(true); cutInEffectCamera.motionBlur.blurAmount = 0.3f; cutInEffectCamera.glowEffect.set_enabled(false); cutInEffectCamera.isCulling = true; this._traShips.localPositionZero(); ProdDamageCutIn.DamageCutInList damageCutInList = (this._iType != ProdDamageCutIn.DamageCutInType.Moderate) ? ProdDamageCutIn.DamageCutInList.ProdDamageCutInHeavyFirst : ProdDamageCutIn.DamageCutInList.ProdDamageCutInModerateFirst; if (this._iType == ProdDamageCutIn.DamageCutInType.Moderate) { this._psModerateSmoke.SetActive(true); this._psModerateSmoke.Play(); } else { this._psHeavyBack.SetActive(true); this._psHeavyBack.Play(); } Dlg.Call(ref onStart); base.Play(damageCutInList, onFinished); }
private void onFirstAnimationFinished() { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.set_enabled(false); int num = 0; using (List <ProdDamageCutIn.DamageShip> .Enumerator enumerator = this._listDamageShips.GetEnumerator()) { while (enumerator.MoveNext()) { ProdDamageCutIn.DamageShip current = enumerator.get_Current(); current.transform.set_localPosition(BattleDefines.DAMAGE_CUT_IN_SHIP_DRAW_POS.get_Item(this._nDrawShipNum).get_Item(num)); current.transform.set_localScale(Vector3.get_one()); current.shipTexture.alpha = 1f; num++; } } this._traShips.get_transform().set_localScale(Vector3.get_one() * 7.5f); this._traShips.get_transform().set_localPosition(Vector3.get_down() * 70f); if (this._clsShipModel != null) { KCV.Battle.Utils.ShipUtils.PlayDamageCutInVoice(this._clsShipModel); } ProdDamageCutIn.DamageCutInList damageCutInList = (this._iType != ProdDamageCutIn.DamageCutInType.Moderate) ? ProdDamageCutIn.DamageCutInList.ProdDamageCutInHeavySecond : ProdDamageCutIn.DamageCutInList.ProdDamageCutInModerateSecond; this._animAnimation.Play(damageCutInList.ToString()); }
public void _startAntiAerialCutIn() { if (this._koukuuModel.GetTaikuShip(true) != null) { if (this._prodAntiAerialCutIn == null) { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; this._prodAntiAerialCutIn = ProdAntiAerialCutIn.Instantiate(Resources.Load <ProdAntiAerialCutIn>("Prefabs/Battle/Production/AerialCombat/ProdAntiAerialCutIn"), this._koukuuModel, cutInEffectCamera.get_transform()); } this._prodAntiAerialCutIn.Play(new Action(this._compAntiAerialCutInEnemy), true); } else if (this._koukuuModel.GetTaikuShip(false) != null) { if (this._prodAntiAerialCutIn == null) { BattleCutInEffectCamera cutInEffectCamera2 = BattleTaskManager.GetBattleCameras().cutInEffectCamera; this._prodAntiAerialCutIn = ProdAntiAerialCutIn.Instantiate(Resources.Load <ProdAntiAerialCutIn>("Prefabs/Battle/Production/AerialCombat/ProdAntiAerialCutIn"), this._koukuuModel, cutInEffectCamera2.get_transform()); } this._prodAntiAerialCutIn.Play(new Action(this._compAntiAerialCutInEnemy), false); } else { this._compAntiAerialCutInEnemy(); } }
public IObservable <bool> Play() { ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Executions(); BattleShips battleShips = BattleTaskManager.GetBattleShips(); battleShips.SetStandingPosition(StandingPositionType.CommandBuffer); BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); battleCameras.SetVerticalSplitCameras(false); battleCameras.fieldDimCamera.maskAlpha = 0f; battleCameras.SwitchMainCamera(FleetType.Friend); BattleFieldCamera battleFieldCamera = battleCameras.fieldCameras.get_Item(0); battleFieldCamera.ReqViewMode(CameraActor.ViewMode.FixChasing); battleFieldCamera.pointOfGaze = Vector3.Lerp(BattleTaskManager.GetBattleField().dicFleetAnchor.get_Item(FleetType.Friend).get_position(), BattleTaskManager.GetBattleField().dicFleetAnchor.get_Item(FleetType.Enemy).get_position(), 0.8f); battleFieldCamera.vignetting.set_enabled(true); battleFieldCamera.glowEffect.set_enabled(true); battleShips.SetBollboardTarget(null); battleShips.SetLayer(Generics.Layers.ShipGirl); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UITexture component = cutInEffectCamera.get_transform().FindChild("TorpedoLine/OverlayLine").GetComponent <UITexture>(); if (component != null) { component.alpha = 0f; } Observable.NextFrame(FrameCountType.Update).Subscribe(delegate(Unit _) { this.CalcInitLineRotation(); this.PlayLineAnimation(); }); return(Observable.FromCoroutine <bool>((IObserver <bool> observer) => this.AnimationObserver(observer))); }
protected override bool InitAttackerFocus(object data) { BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); BattleFieldCamera fieldCam = battleCameras.fieldCameras[0]; List <Vector3> camTargetPos = CalcCloseUpCamPos(fieldCam.transform.position, CalcCamTargetPos(isAttacker: true, isPointOfGaze: true), isProtect: false); base.alterWaveDirection = _listBattleShips[0].fleetType; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_936); GraAddDimCameraMaskAlpha(BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_TIME[0]); fieldCam.transform.LTMove(camTargetPos[0], BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_TIME[0]).setEase(BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_EASING_TYPE[0]).setOnComplete((Action) delegate { ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Register(delegate { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = false; _prodTranscendenceCutIn.transform.localScaleZero(); }); _prodTranscendenceCutIn.SetShellingData(_clsHougekiModel); _prodTranscendenceCutIn.Play(delegate { ChkAttackCntForNextPhase(); }); fieldCam.transform.LTMove(camTargetPos[1], BattleDefines.SHELLING_ATTACK_ATTACKER_CLOSEUP_TIME[1]).setEase(LeanTweenType.linear); }); return(false); }
private void onInitBackground() { BattleShips battleShips = BattleTaskManager.GetBattleShips(); battleShips.SetShipDrawType(FleetType.Enemy, ShipDrawType.Normal); battleShips.SetStandingPosition(StandingPositionType.OneRow); battleShips.SetLayer(Generics.Layers.ShipGirl); BattleField battleField = BattleTaskManager.GetBattleField(); battleField.ResetFleetAnchorPosition(); BattleTaskManager.GetPrefabFile().DisposeProdCommandBuffer(); BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); battleCameras.SwitchMainCamera(FleetType.Friend); battleCameras.InitEnemyFieldCameraDefault(); BattleFieldCamera friendFieldCamera = battleCameras.friendFieldCamera; BattleFieldCamera enemyFieldCamera = battleCameras.enemyFieldCamera; battleCameras.isFieldDimCameraEnabled = false; friendFieldCamera.ResetMotionBlur(); friendFieldCamera.clearFlags = CameraClearFlags.Skybox; friendFieldCamera.cullingMask = battleCameras.GetDefaultLayers(); enemyFieldCamera.cullingMask = battleCameras.GetEnemyCamSplitLayers(); battleCameras.SetVerticalSplitCameras(isSplit: true); friendFieldCamera.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl); enemyFieldCamera.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl); Vector3 position = battleField.dicCameraAnchors[CameraAnchorType.OneRowAnchor][FleetType.Friend].position; friendFieldCamera.transform.position = new Vector3(-51f, 8f, 90f); friendFieldCamera.transform.localRotation = Quaternion.Euler(new Vector3(10.5f, 70f, 0f)); Vector3 position2 = battleField.dicCameraAnchors[CameraAnchorType.OneRowAnchor][FleetType.Enemy].position; enemyFieldCamera.transform.position = new Vector3(-51f, 8f, -90f); enemyFieldCamera.transform.rotation = Quaternion.Euler(new Vector3(10.5f, 111f, 0f)); battleField.isEnemySeaLevelActive = true; battleField.AlterWaveDirection(FleetType.Friend, FleetType.Friend); battleField.AlterWaveDirection(FleetType.Enemy, FleetType.Enemy); BattleShips battleShips2 = BattleTaskManager.GetBattleShips(); battleShips2.RadarDeployment(isDeploy: false); battleShips2.SetBollboardTarget(isFriend: false, enemyFieldCamera.transform); battleShips2.SetTorpedoSalvoWakeAngle(isSet: true); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UITexture component = ((Component)cutInEffectCamera.transform.FindChild("TorpedoLine/OverlayLine")).GetComponent <UITexture>(); if (component != null) { component.alpha = 1f; } BattleTaskManager.GetBattleCameras().fieldDimCamera.maskAlpha = 0f; foreach (UIBattleShip value in BattleTaskManager.GetBattleShips().dicFriendBattleShips.Values) { value.billboard.billboardTarget = BattleTaskManager.GetBattleCameras().friendFieldCamera.transform; } foreach (UIBattleShip value2 in BattleTaskManager.GetBattleShips().dicEnemyBattleShips.Values) { value2.billboard.billboardTarget = BattleTaskManager.GetBattleCameras().enemyFieldCamera.transform; } }
public override void Play(Action callback) { this.panel.widgetsAreStatic = false; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = true; this.Init(); this.setGlowEffects(); base.get_transform().set_localScale(Vector3.get_one()); base.Play(this._iList, callback); }
public override void Play(Action callback) { panel.widgetsAreStatic = false; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = true; Init(); setGlowEffects(); base.transform.localScale = Vector3.one; base.Play(_iList, callback); }
private void _onFinishedAnimation() { this.panel.widgetsAreStatic = true; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.set_enabled(false); if (this._actCallback != null) { this._actCallback.Invoke(); } }
private void _onFinishedAnimation() { panel.widgetsAreStatic = true; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.enabled = false; if (_actCallback != null) { _actCallback(); } }
public void CreateHpGauge(FleetType type) { if (_battleHpGauges == null) { _battleHpGauges = new BattleHPGauges(); } BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UIPanel uIPanel = Resources.Load<UIPanel>("Prefabs/Battle/UI/UICircleHpPanel"); _uiHpGaugePanel = Util.Instantiate(uIPanel.gameObject, cutInEffectCamera.transform.gameObject).GetComponent<UIPanel>(); for (int i = 0; i < 6; i++) { _battleHpGauges.AddInstantiates(_uiHpGaugePanel.gameObject, isFriend: true, isLight: true, isT: false, isNumber: false); } }
public void CreateHpGauge(FleetType type) { if (this._battleHpGauges == null) { this._battleHpGauges = new BattleHPGauges(); } BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UIPanel uIPanel = Resources.Load <UIPanel>("Prefabs/Battle/UI/UICircleHpPanel"); this._uiHpGaugePanel = Util.Instantiate(uIPanel.get_gameObject(), cutInEffectCamera.get_transform().get_gameObject(), false, false).GetComponent <UIPanel>(); for (int i = 0; i < 6; i++) { this._battleHpGauges.AddInstantiates(this._uiHpGaugePanel.get_gameObject(), true, true, false, false); } }
private void OnDecideWinRunkGearBtn() { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.blur.enabled = false; _clsCommon.HideOverlay(); _isWinRunkFinished = true; _isInputEnabled = false; _clsState.AddState(initEXPReflection, updateEXPReflection); _listVeteransReportFleets[0].ChangeBannerMode(UIVeteransReportShipBanner.BannerMode.EXP); if (_uiMVPShip.shipModel != null) { _listVeteransReportFleets[0].veteransReportShipBanner.Find((UIVeteransReportShipBanner x) => x.shipModel == _uiMVPShip.shipModel).PlayMVP(); } }
private bool initWinRunkJudge(object data) { _listVeteransReportFleets[1].transform.LTMoveLocal(Vector3.right * 1000f, 0.3f).setEase(LeanTweenType.easeInSine).setOnComplete((Action) delegate { _listVeteransReportFleets[1].panel.widgetsAreStatic = true; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.blur.enabled = false; _clsCommon.ShowOverlay(); }); Observable.FromCoroutine(_prodWinRankJudge.StartBattleJudge).Subscribe(delegate { OnDecideWinRunkGearBtn(); Mem.DelComponentSafe(ref _prodWinRankJudge); }); return(false); }
private void _moveCamera() { BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; _uiPanel[0].transform.parent = cutInCamera.transform; _uiPanel[0].transform.localPosition = Vector3.one; _uiPanel[1].transform.parent = cutInEffectCamera.transform; _uiPanel[1].transform.localPosition = Vector3.one; for (int i = 0; i < _listAircraft.Count; i++) { if (_listAircraft[i] == null) { continue; } if (_listAircraft[i].transform.parent.parent.name == "FriendPanel") { if (_listAircraft[i]._fleetType == FleetType.Friend) { _listAircraft[i].EndMove(2000f, 0.8f); } else if (_listAircraft[i]._fleetType == FleetType.Enemy) { _listAircraft[i].EndMove(3000f, 0.8f); } } if (_listAircraft[i].transform.parent.parent.name == "EnemyPanel") { if (_listAircraft[i]._fleetType == FleetType.Friend) { _listAircraft[i].EndMove(3000f, 0.8f); } else if (_listAircraft[i]._fleetType == FleetType.Enemy) { _listAircraft[i].EndMove(2000f, 0.8f); } } } for (int j = 0; j < 2; j++) { _baseMoveTo(Vector3.zero, 1f, 0f, iTween.EaseType.linear, string.Empty, _bgTex[j].transform); } }
private void _moveCamera() { BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; this._uiPanel[0].get_transform().set_parent(cutInCamera.get_transform()); this._uiPanel[0].get_transform().set_localPosition(Vector3.get_one()); this._uiPanel[1].get_transform().set_parent(cutInEffectCamera.get_transform()); this._uiPanel[1].get_transform().set_localPosition(Vector3.get_one()); for (int i = 0; i < this._listAircraft.get_Count(); i++) { if (!(this._listAircraft.get_Item(i) == null)) { if (this._listAircraft.get_Item(i).get_transform().get_parent().get_parent().get_name() == "FriendPanel") { if (this._listAircraft.get_Item(i)._fleetType == FleetType.Friend) { this._listAircraft.get_Item(i).EndMove(2000f, 0.8f); } else if (this._listAircraft.get_Item(i)._fleetType == FleetType.Enemy) { this._listAircraft.get_Item(i).EndMove(3000f, 0.8f); } } if (this._listAircraft.get_Item(i).get_transform().get_parent().get_parent().get_name() == "EnemyPanel") { if (this._listAircraft.get_Item(i)._fleetType == FleetType.Friend) { this._listAircraft.get_Item(i).EndMove(3000f, 0.8f); } else if (this._listAircraft.get_Item(i)._fleetType == FleetType.Enemy) { this._listAircraft.get_Item(i).EndMove(2000f, 0.8f); } } } } for (int j = 0; j < 2; j++) { this._baseMoveTo(Vector3.get_zero(), 1f, 0f, iTween.EaseType.linear, string.Empty, this._bgTex[j].get_transform()); } }
public void Play(Action callback, bool isFriend) { this.panel.widgetsAreStatic = false; BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; cutInCamera.depth = 5f; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = true; cutInEffectCamera.depth = 6f; base.get_transform().set_localScale(Vector3.get_one()); this._actCallback = callback; this._iList = this.getAnimationList(); if (this._iList == ProdAntiAerialCutIn.AnimationList.None) { this.onAnimationFinishedAfterDiscard(); return; } this._setShipInfo(isFriend); this._setSlotLabel(isFriend); this.setGlowEffects(); this.Play(callback); }
public void Play(Action callback, bool isFriend) { panel.widgetsAreStatic = false; BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; cutInCamera.depth = 5f; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.isCulling = true; cutInEffectCamera.depth = 6f; base.transform.localScale = Vector3.one; _actCallback = callback; _iList = getAnimationList(); if (_iList == AnimationList.None) { onAnimationFinishedAfterDiscard(); return; } _setShipInfo(isFriend); _setSlotLabel(isFriend); setGlowEffects(); Play(callback); }
private void onFirstAnimationFinished() { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.enabled = false; int num = 0; foreach (DamageShip listDamageShip in _listDamageShips) { listDamageShip.transform.localPosition = BattleDefines.DAMAGE_CUT_IN_SHIP_DRAW_POS[_nDrawShipNum][num]; listDamageShip.transform.localScale = Vector3.one; listDamageShip.shipTexture.alpha = 1f; num++; } _traShips.transform.localScale = Vector3.one * 7.5f; _traShips.transform.localPosition = Vector3.down * 70f; if (_clsShipModel != null) { KCV.Battle.Utils.ShipUtils.PlayDamageCutInVoice(_clsShipModel); } DamageCutInList damageCutInList = (_iType == DamageCutInType.Moderate) ? DamageCutInList.ProdDamageCutInModerateSecond : DamageCutInList.ProdDamageCutInHeavySecond; _animAnimation.Play(damageCutInList.ToString()); }
private void endMotionBlur() { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.enabled = false; }
private void startMotionBlur() { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.enabled = true; }
public void Play(Action callback) { _actCallback = callback; _fieldCamera.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl); _fieldCamera.transform.localPosition = new Vector3(0f, 12f, 0f); _fieldCamera.transform.localRotation = Quaternion.Euler(-16f, 0f, 0f); BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInCamera.cullingMask = (Generics.Layers.TransparentFX | Generics.Layers.UI2D | Generics.Layers.CutIn); cutInCamera.depth = 4f; cutInEffectCamera.cullingMask = (Generics.Layers.Background | Generics.Layers.CutIn); cutInEffectCamera.depth = 5f; cutInEffectCamera.glowEffect.enabled = false; setAirSupremacyLabel(); Vector3[] array = new Vector3[2] { cutInCamera.transform.localPosition, cutInEffectCamera.transform.localPosition }; foreach (int value in Enum.GetValues(typeof(FleetType))) { if (value != 2) { _uiPanel[value].transform.localPosition = array[value]; _cloudPanel[value].transform.parent = ((value != 0) ? cutInEffectCamera.transform : cutInCamera.transform); _cloudParPanel[value] = null; _cloudPanel[value].transform.localPosition = Vector3.zero; } } if (_iType == CutInType.Both) { _setParticlePanel(FleetType.Friend, cutInCamera.transform); _setParticlePanel(FleetType.Enemy, cutInEffectCamera.transform); _labelPanel[0].transform.localPosition = new Vector3(array[1].x, array[1].y + 272f, array[1].z); Transform transform = _labelPanel[1].transform; Vector3 localPosition = cutInCamera.transform.localPosition; float x = localPosition.x; Vector3 localPosition2 = cutInCamera.transform.localPosition; float y = localPosition2.y - 272f; Vector3 localPosition3 = cutInCamera.transform.localPosition; transform.localPosition = new Vector3(x, y, localPosition3.z); Transform transform2 = ((Component)_gunPar[0]).transform; Vector3 localPosition4 = ((Component)_gunPar[0]).transform.localPosition; transform2.localPosition = new Vector3(400f, localPosition4.y, 0f); Transform transform3 = ((Component)_gunPar[1]).transform; Vector3 localPosition5 = ((Component)_gunPar[1]).transform.localPosition; transform3.localPosition = new Vector3(400f, localPosition5.y, 0f); } else if (_iType == CutInType.FriendOnly) { _setParticlePanel(FleetType.Friend, cutInCamera.transform); _labelPanel[0].transform.localPosition = new Vector3(array[0].x, array[0].y - 175f, array[0].z); base.transform.position = cutInCamera.transform.position; _uiPanel[0].transform.localPosition = Vector3.zero; _uiAirObjF[0].transform.localPosition = new Vector3(-280f, 0f, 0f); Transform transform4 = ((Component)_gunPar[0]).transform; Vector3 localPosition6 = ((Component)_gunPar[0]).transform.localPosition; transform4.localPosition = new Vector3(0f, localPosition6.y, 0f); _cloudPanel[1].SetActive(isActive: false); } else if (_iType == CutInType.EnemyOnly) { _setParticlePanel(FleetType.Enemy, cutInEffectCamera.transform); _labelPanel[0].transform.localPosition = new Vector3(array[1].x, array[1].y - 175f, array[1].z); base.transform.position = cutInEffectCamera.transform.position; _uiPanel[1].transform.localPosition = Vector3.zero; _uiAirObjE[1].transform.localPosition = new Vector3(280f, 0f, 0f); Transform transform5 = ((Component)_gunPar[1]).transform; Vector3 localPosition7 = ((Component)_gunPar[1]).transform.localPosition; transform5.localPosition = new Vector3(0f, localPosition7.y, 0f); _cloudPanel[0].SetActive(isActive: false); cutInEffectCamera.isCulling = true; } for (int i = 0; i < 2; i++) { ((Component)_cloudPanel[i].transform).GetComponent <Animation>().Play(); if (_cloudParPanel[i] != null) { _cloudPar[i].Play(); } } _playAircraft(); _playGunParticle(); Animation component = ((Component)base.transform).GetComponent <Animation>(); component.Stop(); component.Play("AerialStartPhase1_1"); for (int j = 0; j < 2; j++) { Vector3 localPosition8 = _uiPanel[j].transform.localPosition; float x2 = localPosition8.x; Vector3 localPosition9 = _uiPanel[j].transform.localPosition; _baseMoveTo(new Vector3(x2, 0f, localPosition9.z), 1.2f, 0.5f, iTween.EaseType.easeOutBack, string.Empty, _uiPanel[j].transform); } }
public bool _init() { this._fieldCamera = BattleTaskManager.GetBattleCameras().friendFieldCamera; this._uiPanel = new UIPanel[2]; this._uiAirObjF = new GameObject[2]; this._uiAirObjE = new GameObject[2]; this._cloudPanel = new UIPanel[2]; this._bgTex = new UITexture[2]; this._cloudParPanel = new UIPanel[2]; this._cloudPar = new ParticleSystem[2]; this._gunPar = new ParticleSystem[2]; using (IEnumerator enumerator = Enum.GetValues(typeof(FleetType)).GetEnumerator()) { while (enumerator.MoveNext()) { FleetType fleetType = (FleetType)((int)enumerator.get_Current()); if (fleetType != FleetType.CombinedFleet) { Util.FindParentToChild <UIPanel>(ref this._uiPanel[(int)fleetType], base.get_transform(), string.Format("{0}Panel", fleetType.ToString())); if (this._uiAirObjF[(int)fleetType] == null) { this._uiAirObjF[(int)fleetType] = this._uiPanel[(int)fleetType].get_transform().FindChild("FAircraft").get_gameObject(); } if (this._uiAirObjE[(int)fleetType] == null) { this._uiAirObjE[(int)fleetType] = this._uiPanel[(int)fleetType].get_transform().FindChild("EAircraft").get_gameObject(); } Util.FindParentToChild <UIPanel>(ref this._cloudPanel[(int)fleetType], base.get_transform(), string.Format("{0}CloudPanel", fleetType.ToString())); Util.FindParentToChild <UITexture>(ref this._bgTex[(int)fleetType], this._cloudPanel[(int)fleetType].get_transform(), "Bg"); Util.FindParentToChild <UIPanel>(ref this._cloudParPanel[(int)fleetType], base.get_transform(), string.Format("{0}CloudParPanel", fleetType.ToString())); Util.FindParentToChild <ParticleSystem>(ref this._gunPar[(int)fleetType], this._cloudPanel[(int)fleetType].get_transform(), "Gun"); } } } bool flag = false; bool flag2 = false; if (this._clsAerial.IsBakugeki_f() || this._clsAerial.IsRaigeki_f()) { flag = true; } if (this._clsAerial.IsBakugeki_e() || this._clsAerial.IsRaigeki_e()) { flag2 = true; } if (flag && flag2) { this._iType = CutInType.Both; } else if (flag && !flag2) { this._iType = CutInType.FriendOnly; } BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); BattleCutInCamera cutInCamera = battleCameras.cutInCamera; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; if (this._iType == CutInType.Both) { battleCameras.SetSplitCameras2D(true); cutInCamera.isCulling = true; cutInEffectCamera.isCulling = true; } else if (this._iType == CutInType.FriendOnly) { cutInCamera.isCulling = true; cutInEffectCamera.isCulling = true; } Observable.FromCoroutine(new Func <IEnumerator>(this._createAsyncAircrafts), false).Subscribe(delegate(Unit _) { }); return(true); }
public void Play(Action callback) { this._actCallback = callback; this._fieldCamera.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl); this._fieldCamera.get_transform().set_localPosition(new Vector3(0f, 12f, 0f)); this._fieldCamera.get_transform().set_localRotation(Quaternion.Euler(-16f, 0f, 0f)); BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInCamera.cullingMask = (Generics.Layers.TransparentFX | Generics.Layers.UI2D | Generics.Layers.CutIn); cutInCamera.depth = 4f; cutInEffectCamera.cullingMask = (Generics.Layers.Background | Generics.Layers.CutIn); cutInEffectCamera.depth = 5f; cutInEffectCamera.glowEffect.set_enabled(false); Vector3[] array = new Vector3[] { cutInCamera.get_transform().get_localPosition(), cutInEffectCamera.get_transform().get_localPosition() }; using (IEnumerator enumerator = Enum.GetValues(typeof(FleetType)).GetEnumerator()) { while (enumerator.MoveNext()) { FleetType fleetType = (FleetType)((int)enumerator.get_Current()); if (fleetType != FleetType.CombinedFleet) { this._uiPanel[(int)fleetType].get_transform().set_localPosition(array[(int)fleetType]); this._cloudPanel[(int)fleetType].get_transform().set_parent((fleetType != FleetType.Friend) ? cutInEffectCamera.get_transform() : cutInCamera.get_transform()); this._cloudParPanel[(int)fleetType] = null; this._cloudPanel[(int)fleetType].get_transform().set_localPosition(Vector3.get_zero()); } } } if (this._iType == CutInType.Both) { this._setParticlePanel(FleetType.Friend, cutInCamera.get_transform()); this._setParticlePanel(FleetType.Enemy, cutInEffectCamera.get_transform()); this._gunPar[0].get_transform().set_localPosition(new Vector3(400f, this._gunPar[0].get_transform().get_localPosition().y, 0f)); this._gunPar[1].get_transform().set_localPosition(new Vector3(400f, this._gunPar[1].get_transform().get_localPosition().y, 0f)); } else if (this._iType == CutInType.FriendOnly) { this._setParticlePanel(FleetType.Friend, cutInCamera.get_transform()); base.get_transform().set_position(cutInCamera.get_transform().get_position()); this._uiPanel[0].get_transform().set_localPosition(Vector3.get_zero()); this._uiAirObjF[0].get_transform().set_localPosition(new Vector3(-280f, 0f, 0f)); this._gunPar[0].get_transform().set_localPosition(new Vector3(0f, this._gunPar[0].get_transform().get_localPosition().y, 0f)); this._cloudPanel[1].SetActive(false); } else if (this._iType == CutInType.EnemyOnly) { } for (int i = 0; i < 2; i++) { this._cloudPanel[i].get_transform().GetComponent <Animation>().Play(); if (this._cloudParPanel[i] != null) { this._cloudPar[i].Play(); } } this._playAircraft(); this._playGunParticle(); Animation component = base.get_transform().GetComponent <Animation>(); component.Stop(); component.Play("AerialStartPhase1_1"); for (int j = 0; j < 2; j++) { this._baseMoveTo(new Vector3(this._uiPanel[j].get_transform().get_localPosition().x, 0f, this._uiPanel[j].get_transform().get_localPosition().z), 1.2f, 0.5f, iTween.EaseType.easeOutBack, string.Empty, this._uiPanel[j].get_transform()); } }