public override void read(ErlKVMessage message)
    {
        ErlArray list = message.getValue("msg") as ErlArray;

        pvpOppInfo = PvpOppInfo.pares(list);
        CardBookWindow.setChatPlayerUid(pvpOppInfo.uid);
        getSdkInfoBack(null);
    }
Exemplo n.º 2
0
 public override void DoClickEvent()
 {
     base.DoClickEvent();
     UiManager.Instance.openWindow <PvpPlayerWindow> (
         (win) => {
         win.initInfo(info, () => {});
         CardBookWindow.setChatPlayerUid(info.uid);
     }
         );
 }
Exemplo n.º 3
0
 void openWindow(Dictionary <string, PlatFormUserInfo> dic)
 {
     if (dic != null)
     {
         if (dic.ContainsKey(pvpOppInfo.uid))
         {
             pvpOppInfo.sdkInfo = dic[pvpOppInfo.uid];
         }
     }
     CardBookWindow.setChatPlayerUid(pvpOppInfo.uid);
     UiManager.Instance.openWindow <PvpPlayerWindow>(
         (win) =>
     {
         win.teamType = teamType;
         win.initInfo(pvpOppInfo, reLoadCallback);
     });
 }
Exemplo n.º 4
0
    public void updateActive(GameObject obj)
    {
        int pageNUm = StringKit.toInt(obj.name);

        PvpInfoManagerment.Instance.setOppIndex(pageNUm - 1);
        CardBookWindow.setChatPlayerUid(PvpInfoManagerment.Instance.getOpp().uid);
        if (pageNUm == 1)
        {
            leftArrow.gameObject.SetActive(false);
            rightArrow.gameObject.SetActive(true);
        }
        else if (pageNUm == 3)
        {
            leftArrow.gameObject.SetActive(true);
            rightArrow.gameObject.SetActive(false);
        }
        else
        {
            leftArrow.gameObject.SetActive(true);
            rightArrow.gameObject.SetActive(true);
        }
    }