Exemplo n.º 1
0
 public void OpenPop(DailyPop p)
 {
     pop = p;
     pop.SetTab();
     DailyMgr.Instance.DailyList();
     //TabChange(DailyTab.Sign);
     pop.tabList[(int)DailyPop.DailyTab.Sign].SetState(true);
     pop.CheckBtnTime();
 }
Exemplo n.º 2
0
    public void GoldCallback(C2sSprotoType.c_gold_once.response resp)
    {
        pop.goldBtn.isEnabled = true;
        if (curGoldView != null && resp.errorcode == 1)
        {
            UserManager.Instance.SubDiamond(curGoldView.data.diamond_count);
            UserManager.Instance.AddCoin(curGoldView.data.getNum);

            pop.goldBtn.isEnabled = false;
            DateTime d = DateTime.Now.AddSeconds(resp.lefttime);
            int      a = goldLevel + curGoldView.data.level_up;
            pop.goldlevel.text = a.ToString();
            pop.CheckBtnTime();
            pop.SetGoldTime(d);
            GoldList();
        }
        curGoldView = null;
    }