Ejemplo n.º 1
0
 private void CreateDefaultCharacteristics()
 {
     PlayerCharacteristics = new Dictionary <TypeCharacteristic, PlayerCharacteristics>();
     foreach (Stat characteristics2 in _gameController.GameData.stats)
     {
         Sprite icon = Resources.Load <Sprite>(Path.Combine("Icons", characteristics2.icon));
         PlayerCharacteristics value = new PlayerCharacteristics(characteristics2.title, characteristics2.value, icon);
         PlayerCharacteristics.Add((TypeCharacteristic)characteristics2.id, value);
     }
 }