예제 #1
0
 private void onReqSearchPvpSuccess(BaseWWWRequest obj)
 {
     try
     {
         GameData instance = GameData.instance;
         this.searchNodeResponse = new JsonReader().Read <SearchEnemyResponse>(base.UTF8String);
         base.responseData       = this.searchNodeResponse;
         if (this.searchNodeResponse.eid != 0)
         {
             this.onReqSearchPvpFail(obj);
         }
         else
         {
             this.OnGetSearchPVPSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.onReqSearchPvpFail(obj);
     }
 }
예제 #2
0
 private void onReqSearchNodeSuccess(BaseWWWRequest obj)
 {
     try
     {
         GameData instance = GameData.instance;
         this.searchNodeResponse = new JsonReader().Read <SearchEnemyResponse>(base.UTF8String);
         base.responseData       = this.searchNodeResponse;
         if (this.searchNodeResponse.eid != 0)
         {
             this.onReqSearchNodeFail(obj);
         }
         else
         {
             this.OnGetSearchNodeSuccess(EventArgs.Empty);
             z.instance.setBattleStatus(BATTLE_STATUS.SPY_NODE);
             z.log("[PVE - 索敌进行中]....");
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.onReqSearchNodeFail(obj);
     }
 }
 private void SearchSuccess(object o, EventArgs e)
 {
     this.isRequestingServer = false;
     this.searchResponse = o as SearchEnemyResponse;
     this.HandleSearchNodeResult();
 }
예제 #4
0
 private void onReqSearchNodeSuccess(BaseWWWRequest obj)
 {
     try
     {
         GameData instance = GameData.instance;
         this.searchNodeResponse = new JsonReader().Read<SearchEnemyResponse>(base.UTF8String);
         base.responseData = this.searchNodeResponse;
         if (this.searchNodeResponse.eid != 0)
         {
             this.onReqSearchNodeFail(obj);
         }
         else
         {
             this.OnGetSearchNodeSuccess(EventArgs.Empty);
             z.instance.setBattleStatus(BATTLE_STATUS.SPY_NODE);
             z.log("[PVE - 索敌进行中]....");
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.onReqSearchNodeFail(obj);
     }
 }
 private void onReqSearchSuccess(BaseWWWRequest obj)
 {
     try
     {
         GameData instance = GameData.instance;
         if (this.needZip)
         {
             this.searchNodeResponse = JsonReader.Deserialize<SearchEnemyResponse>(base.UTF8String);
         }
         else
         {
             this.searchNodeResponse = JsonReader.Deserialize<SearchEnemyResponse>(base.www.text);
         }
         base.responseData = this.searchNodeResponse;
         if (this.searchNodeResponse.eid != 0)
         {
             this.onReqSearchFail(obj);
         }
         else
         {
             this.OnGetSearchSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         Debug.Log(exception);
         this.onReqSearchFail(obj);
     }
 }
예제 #6
0
 private void onReqSearchPvpSuccess(BaseWWWRequest obj)
 {
     try
     {
         GameData instance = GameData.instance;
         this.searchNodeResponse = new JsonReader().Read<SearchEnemyResponse>(base.UTF8String);
         base.responseData = this.searchNodeResponse;
         if (this.searchNodeResponse.eid != 0)
         {
             this.onReqSearchPvpFail(obj);
         }
         else
         {
             this.OnGetSearchPVPSuccess(EventArgs.Empty);
         }
     }
     catch (Exception exception)
     {
         z.log(exception.Message);
         this.onReqSearchPvpFail(obj);
     }
 }