public void Init(MatchHistoryRecordData data)
 {
     _data = data;
     //dateText.text = _data.date;
     typeText.text = _data.type;
     rankText.text = string.Format("第" + _data.rank + "名");
     desText.text  = string.Format("实力超强,您共计淘汰" + _data.eliminate + "位选手");
     UGUIEventListener.Get(closeBtn).onClick = delegate { panel.CurItem = this; };
     closeBtn.transform.localScale           = new Vector2(Screen.width, Screen.height);
     circlesBtn.onClick.AddListener(delegate {
         if (!AudioManager.Instance.IsSoundPlaying)
         {
             AudioManager.Instance.PlaySound(AudioManager.AudioSoundType.BtnClick);
         }
         OnShare(SDKManager.WechatShareScene.WXSceneTimeline);
     });
     weChatBtn.onClick.AddListener(delegate {
         if (!AudioManager.Instance.IsSoundPlaying)
         {
             AudioManager.Instance.PlaySound(AudioManager.AudioSoundType.BtnClick);
         }
         OnShare(SDKManager.WechatShareScene.WXSceneSession);
     });
     itemBtn.onClick.AddListener(delegate
     {
         if (!AudioManager.Instance.IsSoundPlaying)
         {
             AudioManager.Instance.PlaySound(AudioManager.AudioSoundType.BtnClick);
         }
         ItemOnClick();
     });
     desPanel.SetActive(false);
 }
Example #2
0
    /// <summary>历史战绩 </summary>
    public void MatcherHistoryFinish(MatcherHistoryResp resp)
    {
        histoyList.Clear();
        var histoysList = resp.matcherHistory;

        for (int i = 0; i < histoysList.Count; i++)
        {
            MatchHistoryRecordData data = new MatchHistoryRecordData();
            data.type      = histoysList[i].matcherName;
            data.rank      = histoysList[i].rank;
            data.eliminate = histoysList[i].dieNum;
            data.date      = histoysList[i].matcherTime;
            histoyList.Add(data);
        }
        if (NodeManager.GetNode <MatchRecordNode>())
        {
            NodeManager.GetNode <MatchRecordNode>().historyRecordPaenl.CreateItem();
        }
    }