예제 #1
0
 private void onReqStartLevelSuccess(BaseWWWRequest obj)
 {
     try
     {
         this.startLevelResponse = new JsonFx.Json.JsonReader().Read <GetStartLevelResponse>(this.UTF8String);
         base.responseData       = this.startLevelResponse;
         if (this.startLevelResponse.eid != 0)
         {
             this.onReqStartLevelFail(obj);
         }
         else
         {
             this.OnGetStartLevelSuccess(EventArgs.Empty);
             z.instance.setBattleStatus(BATTLE_STATUS.STARTED);
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.onReqStartLevelFail(obj);
     }
 }
예제 #2
0
 private void onReqStartLevelSuccess(BaseWWWRequest obj)
 {
     try
     {
         this.startLevelResponse = new JsonFx.Json.JsonReader().Read<GetStartLevelResponse>(this.UTF8String);
         base.responseData = this.startLevelResponse;
         if (this.startLevelResponse.eid != 0)
         {
             this.onReqStartLevelFail(obj);
         }
         else
         {
             this.OnGetStartLevelSuccess(EventArgs.Empty);
             z.instance.setBattleStatus(BATTLE_STATUS.STARTED);
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.onReqStartLevelFail(obj);
     }
 }
 private void onReqStartLevelSuccess(BaseWWWRequest obj)
 {
     try
     {
         if (this.needZip)
         {
             this.startLevelResponse = JsonReader.Deserialize<GetStartLevelResponse>(base.UTF8String);
         }
         else
         {
             this.startLevelResponse = JsonReader.Deserialize<GetStartLevelResponse>(base.www.text);
         }
         base.responseData = this.startLevelResponse;
         if (this.startLevelResponse.eid != 0)
         {
             this.onReqStartLevelFail(obj);
         }
         else
         {
             this.OnGetStartLevelSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         Debug.Log(exception);
         base.parseException = exception;
         this.onReqStartLevelFail(obj);
     }
 }