Пример #1
0
 public void FromSaveGameValue(string dataStr)
 {
     string[] tokens = dataStr.Split(';');
     if (tokens.Length == 2)
     {
         try
         {
             MaximumValue.FromSaveGameValue(tokens[1]);
             CurrentValue.FromSaveGameValue(tokens[0]);
         } catch (System.Exception)
         {
             Debug.LogError("invalid format of " + dataStr);
         }
     }
 }