private void ClickSkip(IUIObject obj) { if (this.m_bSkip || this.sendPacket) { return; } this.m_bSkip = true; if (null != this.walkAniGameObject && this.walkGameObject.activeInHierarchy) { this.walkGameObject.SetActive(false); this.rootGameObject.SetActive(true); if (null != this.childGameObject) { this.childGameObject.SetActive(false); } this.aniGameObject.animation.Play(); this.resultTextTime = Time.realtimeSinceStartup; GS_EXPLORATION_REQ gS_EXPLORATION_REQ = new GS_EXPLORATION_REQ(); int num = 0; foreach (NkSoldierInfo current in NrTSingleton <ExplorationManager> .Instance.GetSolInfo()) { if (num >= 6) { break; } gS_EXPLORATION_REQ.m_nSolID[num] = current.GetSolID(); num++; } SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXPLORATION_REQ, gS_EXPLORATION_REQ); this.sendPacket = true; } }
public override void Update() { if (NrTSingleton <ContentsLimitManager> .Instance.IsWillSpend()) { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (this.m_nCurrentActivity != kMyCharInfo.m_nActivityPoint || this.m_nMaxActivity != kMyCharInfo.m_nMaxActivityPoint) { this.m_nBeforeActivity = this.m_nCurrentActivity; this.m_nCurrentActivity = kMyCharInfo.m_nActivityPoint; this.m_nMaxActivity = kMyCharInfo.m_nMaxActivityPoint; } if (this.m_fActivityUpdateTime < Time.realtimeSinceStartup) { MyCharInfoDlg myCharInfoDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYCHARINFO_DLG) as MyCharInfoDlg; if (myCharInfoDlg == null) { return; } this.m_lbActivityTime.SetText(myCharInfoDlg.StrActivityTime); this.m_fActivityUpdateTime = Time.realtimeSinceStartup + 1f; this.SetActivityPointUI(); } } if (!this.m_bSkip && !this.sendPacket && null != this.walkAniGameObject && !this.walkAniGameObject.animation.isPlaying && this.walkGameObject.activeInHierarchy) { this.walkGameObject.SetActive(false); this.rootGameObject.SetActive(true); if (null != this.childGameObject) { this.childGameObject.SetActive(false); } this.aniGameObject.animation.Play(); this.resultTextTime = Time.realtimeSinceStartup; GS_EXPLORATION_REQ gS_EXPLORATION_REQ = new GS_EXPLORATION_REQ(); int num = 0; foreach (NkSoldierInfo current in NrTSingleton <ExplorationManager> .Instance.GetSolInfo()) { if (num >= 6) { break; } gS_EXPLORATION_REQ.m_nSolID[num] = current.GetSolID(); num++; } SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXPLORATION_REQ, gS_EXPLORATION_REQ); this.sendPacket = true; } if (null != this.childGameObject && !this.imageSet && this.request) { Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.textureKey); if (null != texture) { Material material = new Material(Shader.Find("Transparent/Vertex Colored" + NrTSingleton <UIDataManager> .Instance.AddFilePath)); if (null != material) { material.mainTexture = texture; if (null != this.childGameObject.renderer) { this.childGameObject.renderer.sharedMaterial = material; this.childGameObject.SetActive(true); } this.imageSet = true; } } } if (0f < this.resultTextTime && Time.realtimeSinceStartup - this.resultTextTime >= 1.5f) { TsAudioManager.Container.RequestAudioClip("UI_SFX", "EXPLOERE", "ACQUIRE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); this.m_ResultText.Visible = true; this.m_ResultText.Text = this.resultText; this.resultTextTime = 0f; } if (null != this.aniGameObject && null != this.aniGameObject.animation && !this.aniGameObject.animation.isPlaying) { this.m_Continue.controlIsEnabled = true; this.sendPacket = false; } }