public void HideUIGuide() { if (this._GuideItem != null) { NrTSingleton <NkClientLogic> .Instance.SetNPCTalkState(false); this._GuideItem.SetLocationZ(this._ButtonZ); this._GuideItem.m_LeagerFaceImg.StopAni(); this._GuideItem.m_LeagerFaceImg.AlphaAni(1f, 1f, 0f); } this._GuideItem = null; }
public void ShowUIGuide(string param1, string param2, int winID) { int num = 0; if (!int.TryParse(param1, out num)) { num = 0; } ColosseumChallenge.ChallengeControl challengeControl = this.m_ChallengeControl[num]; if (challengeControl != null) { this._GuideItem = challengeControl; } else { Debug.LogError("ChallengeControl == NULL"); } this.m_nWinID = winID; if (this._GuideItem != null) { UI_UIGuide uI_UIGuide = NrTSingleton <FormsManager> .Instance.GetForm((G_ID)this.m_nWinID) as UI_UIGuide; if (uI_UIGuide != null) { this._GuideItem.m_ChallengeButton.EffectAni = false; Vector2 vector = new Vector2(base.GetLocationX() + this._GuideItem.m_ChallengeButton.GetLocationX() + 80f, base.GetLocationY() + this._GuideItem.m_ChallengeButton.GetLocationY() - 10f); uI_UIGuide.Move(vector, vector); this._ButtonZ = this._GuideItem.m_ChallengeButton.GetLocation().z; challengeControl.SetLocationZ(uI_UIGuide.GetLocation().z - base.GetLocation().z - 1f); challengeControl.m_LeagerFaceImg.AlphaAni(1f, 0.5f, -0.5f); } } else { Debug.LogError("_GuideItem == NULL"); } }