private void OnCheckEnemyBtnClick() { if (HonorArenaManager.Instance.CurrentChallenger != null) { HonorArenaChallenger challenger = HonorArenaManager.Instance.CurrentChallenger; LTOtherInfoController.Open(TitleType.Enemy_Title, challenger._id, challenger.name, challenger.level, challenger.worldId, challenger.point, challenger.br); } }
public virtual void OnIconClick() { FusionAudio.PostEvent("UI/General/ButtonClick"); if (Data.m_Uid == LoginManager.Instance.LocalUserId.Value) { return; } LTOtherInfoController.Open(TitleType.Info_Title, Data.m_Uid.ToString(), Data.m_Name, int.Parse(Data.m_DrawLevel), Data.w_id, Data.m_Score, Data.m_CombatPower, Data.m_Rank); }
public override void Awake() { base.Awake(); FX = mDMono.transform.GetComponent <ParticleSystemUIComponent>("BG/FX"); m_UIBg = mDMono.transform.Find("BG").GetComponent <UISprite>(); m_UIIcon = mDMono.transform.Find("Pic").GetComponent <UISprite>(); m_FrameIcon = mDMono.transform.Find("Pic/Frame").GetComponent <UISprite>(); m_UIName = mDMono.transform.Find("Name").GetComponent <UILabel>(); m_UICombatPower = mDMono.transform.Find("CombatPower/Base").GetComponent <UILabel>(); m_UIScore = mDMono.transform.Find("Score").GetComponent <UILabel>(); m_ChangeBtn = mDMono.transform.Find("ChallengeBtn").GetComponent <UIButton>(); m_UICost = mDMono.transform.Find("ChallengeBtn/Numbel").GetComponent <UILabel>(); m_UIFree = mDMono.transform.Find("ChallengeBtn/Free").GetComponent <UILabel>(); m_UIIcon.gameObject.GetComponent <UIEventTrigger>().onPress.Add(new EventDelegate(() => { LTOtherInfoController.Open(TitleType.Info_Title, challenger._id, challenger.name, challenger.level, challenger.worldId, challenger.point, challenger.br); })); }