public void showMessage() { _clsShipName.SetActive(isActive: true); _clsSType.SetActive(isActive: true); _clsShipName.gameObject.SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, _clsShipName.gameObject, string.Empty); _clsSType.gameObject.SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, _clsSType.gameObject, string.Empty); TrophyUtil.Unlock_GetShip(_clsRewardShip.Ship.MstId); }
public void showMessage() { this._clsShipName.SetActive(true); this._clsSType.SetActive(true); this._clsShipName.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._clsShipName.get_gameObject(), string.Empty); this._clsSType.get_gameObject().SafeGetTweenAlpha(0f, 1f, 0.5f, 0f, UITweener.Method.Linear, UITweener.Style.Once, this._clsSType.get_gameObject(), string.Empty); TrophyUtil.Unlock_GetShip(this._clsRewardShip.Ship.MstId); }
public void Update() { if (this.mKeyController != null && this.enabledKey && this.mKeyController.keyState.get_Item(1).down) { this.finish = true; } if (this.on) { if (Time.get_time() - this.timer <= 1f) { this.fade.alpha += Mathf.Min(Time.get_deltaTime(), 1f - this.fade.alpha); } if (Time.get_time() - this.timer >= 1f && Time.get_time() - this.timer <= 2f) { this.fade.alpha -= Mathf.Min(Time.get_deltaTime(), this.fade.alpha); } if (Time.get_time() - this.timer >= 1f && Time.get_time() - this.timer <= 2.25f) { this.StripeExpand(); } if (Time.get_time() - this.timer >= 1.5f && Time.get_time() - this.timer <= 2f) { this.ConvertCompleteSlide(); } if (Time.get_time() - this.timer >= 3.25f && Time.get_time() - this.timer <= 4.5f) { this.StripeContract(); } if (Time.get_time() - this.timer >= 4.5f && Time.get_time() - this.timer <= 5.5f) { this.BGExpand(); } if (Time.get_time() - this.timer >= 4.75f && Time.get_time() - this.timer <= 6.25f) { this.ShipSlide(); } if (Time.get_time() - this.timer >= 8f && Time.get_time() - this.timer <= 10f) { this.CardSwap(); } if (this.finish) { this.finish = false; SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); TrophyUtil.Unlock_GetShip(this.mTargetShipModelMst.MstId); SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate { this.isFinished = true; }); } } }
public void Update() { if (mKeyController != null && enabledKey && mKeyController.keyState[1].down) { finish = true; } if (on) { if (Time.time - timer <= 1f) { fade.alpha += Mathf.Min(Time.deltaTime, 1f - fade.alpha); } if (Time.time - timer >= 1f && Time.time - timer <= 2f) { fade.alpha -= Mathf.Min(Time.deltaTime, fade.alpha); } if (Time.time - timer >= 1f && Time.time - timer <= 2.25f) { StripeExpand(); } if (Time.time - timer >= 1.5f && Time.time - timer <= 2f) { ConvertCompleteSlide(); } if (Time.time - timer >= 3.25f && Time.time - timer <= 4.5f) { StripeContract(); } if (Time.time - timer >= 4.5f && Time.time - timer <= 5.5f) { BGExpand(); } if (Time.time - timer >= 4.75f && Time.time - timer <= 6.25f) { ShipSlide(); } if (Time.time - timer >= 8f && Time.time - timer <= 10f) { CardSwap(); } if (finish) { finish = false; SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); TrophyUtil.Unlock_GetShip(mTargetShipModelMst.MstId); SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate { isFinished = true; }); } } }
private void compStartAnimation() { if (!this._isNeedBGM) { this._uiParComp.SetActive(true); this._uiParComp.Play(); } this._uiParticle.Stop(); this._uiParticle.SetActive(false); this._uiShip.alpha = 1f; this._uiBg.mainTexture = TextureFile.LoadRareBG(this._clsRewardShip.Ship.Rare); this._getIconAnim.get_gameObject().SetActive(true); this._getIconAnim.Stop(); this._getIconAnim.Play(); this._isPlayPhase1 = false; this._isInput = false; this._anim.Stop(); this._anim.Play("comp_GetShip"); TrophyUtil.Unlock_At_BuildShip(this._clsRewardShip.Ship.MstId); TrophyUtil.Unlock_GetShip(this._clsRewardShip.Ship.MstId); }
private void compStartAnimation() { if (!_isNeedBGM) { ((Component)_uiParComp).SetActive(isActive: true); _uiParComp.Play(); } _uiParticle.Stop(); ((Component)_uiParticle).SetActive(isActive: false); _uiShip.alpha = 1f; _uiBg.mainTexture = TextureFile.LoadRareBG(_clsRewardShip.Ship.Rare); ((Component)_getIconAnim).gameObject.SetActive(true); _getIconAnim.Stop(); _getIconAnim.Play(); _isPlayPhase1 = false; _isInput = false; _anim.Stop(); _anim.Play("comp_GetShip"); TrophyUtil.Unlock_At_BuildShip(_clsRewardShip.Ship.MstId); TrophyUtil.Unlock_GetShip(_clsRewardShip.Ship.MstId); }