Exemple #1
0
 public void OnClick()
 {
     //点击查看玩家信息按钮
     UnityEngine.GameObject go = UIManager.Instance.GetWindowGoByName("PPVPFighterIntro");
     if (go != null)
     {
         UIFighterIntro fighterIntro = go.GetComponent <UIFighterIntro>();
         if (fighterIntro != null)
         {
             fighterIntro.ShowIntro(m_PlayerInfo);
         }
     }
 }
Exemple #2
0
 //找到点击的数据
 void SearchItem(List <ArenaTargetInfo> RankList)
 {
     foreach (ArenaTargetInfo info in RankList)
     {
         if (playerName.text == info.Nickname)
         {
             //LogicSystem.EventChannelForGfx.Publish("record_click_item", "record", info);
             UnityEngine.GameObject rd = UIManager.Instance.GetWindowGoByName("PPVPFighterIntro");
             if (rd != null)
             {
                 UIFighterIntro uifi = rd.GetComponent <UIFighterIntro>();
                 if (uifi != null)
                 {
                     uifi.ShowIntro(info);
                 }
             }
         }
     }
 }