示例#1
0
 private void SetStatus(string json)
 {
     try
     {
         XmasStatus xmasStatus = JsonUtility.FromJson <XmasStatus>(json);
         if (xmasStatus != null)
         {
             status = xmasStatus;
             if (GiftService.statusUpdated != null)
             {
                 GiftService.statusUpdated(status);
             }
         }
     }
     catch (Exception exception)
     {
         Debug.LogException(exception);
     }
 }
示例#2
0
 private void GiftService_statusUpdated(XmasStatus status)
 {
     SetValue(status.total, status.goal, status.last_goal, status.prize);
 }