Ejemplo n.º 1
0
 public void UpdateAccount(DelManager.BoolDelegate del)
 {
     NetCommand.Instance.LoginUser(PlayerPrefs.GetString(PlayerprefID.USERID), (string res) =>
     {
         NUser nuser = Util.Instance.Get <NUser>(res);
         GameBaseInfo.Instance.user = nuser;
         if (del != null)
         {
             del(true);
         }
     }, (string err) => {
         if (del != null)
         {
             del(false);
         }
     });
 }
Ejemplo n.º 2
0
 public void UpdateOrders(DelManager.BoolDelegate del)
 {
     NetCommand.Instance.SearchOders(GameBaseInfo.Instance.user.tel, (string res) =>
     {
         GameBaseInfo.Instance.myOrders = Util.Instance.Get <List <NOrder> >(res);
         Debug.Log("cnt: " + GameBaseInfo.Instance.myOrders.Count);
         if (del != null)
         {
             del(true);
         }
     }, (string err) =>
     {
         if (del != null)
         {
             del(false);
         }
         Toast.Instance.Show(10026);
     });
 }