public override void Update() { switch (this.m_eBundleDownState) { case ReincarnationSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLEDOWNSTATE_DOWNING: if (null != NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strBaseFaceImageKey) && null != NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strNewFaceImageKey)) { this.SetFaceTexture("fx_face_base", this.m_strBaseFaceImageKey); this.SetFaceTexture("fx_face_new", this.m_strNewFaceImageKey); this.m_eBundleDownState = ReincarnationSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLEDOWNSTATE_DOWNCOMPLTE; if (TsPlatform.IsMobile && TsPlatform.IsEditor) { NrTSingleton <NkClientLogic> .Instance.SetEditorShaderConvert(ref this.m_goEffect); } this.m_goEffect.SetActive(true); } break; case ReincarnationSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLEDOWNSTATE_DOWNCOMPLTE: { Animation componentInChildren = this.m_goEffect.GetComponentInChildren <Animation>(); if (componentInChildren != null && !componentInChildren.isPlaying) { this.m_eBundleDownState = ReincarnationSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLEDOWNSTATE_OK; } break; } case ReincarnationSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLEDOWNSTATE_OK: this.SkipEffect(); base.CloseNow(); break; } }
private void SetTextureBundle() { this.SetTextureBundleSub(this.m_iBaseCharKind, out this.m_strBaseFaceImageKey); this.SetTextureBundleSub(this.m_iNewCharKind, out this.m_strNewFaceImageKey); this.m_eBundleDownState = ReincarnationSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLEDOWNSTATE_DOWNING; }