private void OnShipParameterUpEventListener(ShipModel shipModel, ShipExpModel shipExpModel, PowUpInfo powUpInfo) { if (this.mOnShipParameterUpEvent != null) { this.mOnShipParameterUpEvent.Invoke(shipModel, shipExpModel, powUpInfo); } }
private void OnPowerUpNotify(ShipModel shipModel) { ShipExpModel shipExpInfo = this.mDeckPracticeResultModel.GetShipExpInfo(shipModel.MemId); PowUpInfo shipPowupInfo = this.mDeckPracticeResultModel.GetShipPowupInfo(shipModel.MemId); this.OnShipParameterUpEventListener(shipModel, shipExpInfo, shipPowupInfo); }
private void OnShipParameterUpEventListener(ShipModel shipModel, ShipExpModel shipExpModel, PowUpInfo powUpInfo) { if (mOnShipParameterUpEvent != null) { mOnShipParameterUpEvent(shipModel, shipExpModel, powUpInfo); } }
public void Initialize(int slotIndex, ShipModel shipModel, ShipExpModel shipExpModel) { this.mSlotIndex = slotIndex; this.mShipModel = shipModel; this.mShipExpModel = shipExpModel; this.mLabel_Level.text = shipExpModel.LevelBefore.ToString(); this.mCommonShipBanner.SetShipData(this.mShipModel); }
private void OnDestroy() { mLabel_ShipName = null; mLabel_Level = null; mLabel_ShipType = null; mSlider_Exp = null; mShipModel = null; mShipExpModel = null; }
public void Initialize(ShipModel shipModel, ShipExpModel exp) { mShipModel = shipModel; mShipExpModel = exp; mLabel_Level.text = exp.LevelBefore.ToString(); mLabel_ShipName.text = shipModel.Name; mLabel_ShipType.text = shipModel.ShipTypeName; mSlider_Exp.value = ((exp.ExpRateBefore != 0) ? ((float)exp.ExpRateBefore / 100f) : 0f); }
private void OnShipParameterUpEventListener(ShipModel shipModel, ShipExpModel shipExpModel, PowUpInfo powUpInfo) { UIDeckPracticeBanner uIDeckPracticeBanner = mUIDeckPracticeBanners.First((UIDeckPracticeBanner shipBanner) => shipBanner.Model.MemId == shipModel.MemId); if (!powUpInfo.IsAllZero()) { uIDeckPracticeBanner.PlayPracticeWithLevelUp(); } else { uIDeckPracticeBanner.PlayPractice(); } }
private void OnDestroy() { if (DOTween.IsTweening(this)) { DOTween.Kill(this); } mWidget_Banner = null; mWidget_Status = null; mCommonShipBanner = null; mLabel_Level = null; mTexture_GaugeExp = null; mTexture_LevelUp = null; mShipModel = null; mShipExpModel = null; }
private void OnDestroy() { bool flag = DOTween.IsTweening(this); if (flag) { DOTween.Kill(this, false); } this.mWidget_Banner = null; this.mWidget_Status = null; this.mCommonShipBanner = null; this.mLabel_Level = null; this.mTexture_GaugeExp = null; this.mTexture_LevelUp = null; this.mShipModel = null; this.mShipExpModel = null; }
private IEnumerator StartProductionCoroutine(DeckPracticeResultModel deckPracticeResultModel, Action onFinished) { TrophyUtil.Unlock_UserLevel(); ShipModel[] ships = deckPracticeResultModel.Ships; foreach (ShipModel ship in ships) { ShipExpModel shipExpInfo = deckPracticeResultModel.GetShipExpInfo(ship.MemId); PowUpInfo powUpInfo = deckPracticeResultModel.GetShipPowupInfo(ship.MemId); IEnumerator startProductionShipResult = StartProductionShipResult(ship, shipExpInfo, powUpInfo); yield return(StartCoroutine(startProductionShipResult)); } if (onFinished != null) { SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); onFinished(); } }
private IEnumerator TEST_StartProductionCoroutine(object o, Action onFinished) { ShipModel[] shipModels = new OrganizeManager(1).GetShipList(); ShipModel[] array = shipModels; foreach (ShipModel ship in array) { ShipExpModel shipExpInfo = new ShipExpModel(1, ship, 1, new List <int> { 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11 }); IEnumerator startProductionShipResult = StartProductionShipResult(ship, shipExpInfo, default(PowUpInfo)); yield return(StartCoroutine(startProductionShipResult)); } if (onFinished != null) { SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); onFinished(); } }
private IEnumerator StartProductionShipResult(ShipModel shipModel, ShipExpModel expModel, PowUpInfo powUpInfo) { if (DOTween.IsTweening(this)) { DOTween.Kill(this); } bool animationNow = true; yield return(StartCoroutine(InitializeCoroutine(shipModel, powUpInfo))); mUIDeckPracticeShipInfo.Initialize(shipModel, expModel); WaitForKeyOrTouch(mKeyController, delegate { this.mKeyController.ClearKeyAll(); this.mKeyController.firstUpdate = true; DOTween.Kill(this, complete: true); }); Sequence seq = DOTween.Sequence().SetId(this); seq.Append(GenerateTweenShipIn()); seq.Join(mUIDeckPracticeShipInfo.GenerateTweenExpAndLevel()); seq.Join(GenerateTweenParameterResult()); ShipUtils.PlayShipVoice(shipModel, local.utils.Utils.GetSpecialVoiceId(shipModel.MstId)); yield return(seq.WaitForStart()); yield return(StartCoroutine(WaitForKeyOrTouch(mKeyController, delegate { animationNow = false; }))); while (animationNow) { yield return(null); } yield return(null); }