示例#1
0
 private void MobileClientEvaluateMissionResultHandler(MobileClientEvaluateMissionResult msg)
 {
     if (msg.Result == 0)
     {
         MissionDataCache.AddOrUpdateMissionData(msg.GarrMissionID, msg.SuccessChance);
         if (this.MissionSuccessChanceChangedAction != null)
         {
             this.MissionSuccessChanceChangedAction.Invoke(msg.SuccessChance);
         }
     }
     else
     {
         GARRISON_RESULT result = (GARRISON_RESULT)msg.Result;
         Debug.Log("MobileClientEvaluateMissionResult failed with error " + result.ToString());
     }
 }