Exemple #1
0
 public void OnEndConsume(bool isSuccess)
 {
     if (DataMng.Instance().RespDataSH_ReqVerify != null && DataMng.Instance().RespDataSH_ReqVerify.status == 2)
     {
         RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_OFF);
         GameWebAPI.RequestUS_UserStatus requestUS_UserStatus = new GameWebAPI.RequestUS_UserStatus();
         requestUS_UserStatus.SetSendData = delegate(GameWebAPI.PlayerInfoSendData param)
         {
             param.keys = "point";
         };
         requestUS_UserStatus.OnReceived = delegate(GameWebAPI.RespDataUS_GetPlayerInfo response)
         {
             DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point = response.playerInfo.point;
         };
         GameWebAPI.RequestUS_UserStatus request = requestUS_UserStatus;
         base.StartCoroutine(request.Run(delegate()
         {
             RestrictionInput.EndLoad();
             this.OnUpdatedDigistone(isSuccess);
         }, null, null));
     }
     else
     {
         this.OnUpdatedDigistone(isSuccess);
     }
 }
 public APIRequestTask RequestPlayerInfo(bool requestRetry = true)
 {
     GameWebAPI.RequestUS_UserStatus request = new GameWebAPI.RequestUS_UserStatus
     {
         OnReceived = delegate(GameWebAPI.RespDataUS_GetPlayerInfo response)
         {
             DataMng.Instance().RespDataUS_PlayerInfo = response;
             this.playerStaminaBaseTime = ServerDateTime.Now;
         }
     };
     return(new APIRequestTask(request, requestRetry));
 }