示例#1
0
 /// <summary>
 /// Allows us to set the stat block as copiable, we copy the currrent stat values so
 /// our copy is initialized with them when it's created.
 /// </summary>
 public void MakeCopiable()
 {
     for (int i = 0; i < unitStats.Count; i++)
     {
         StatInitializer currentStat = unitStats[i];
         currentStat.startingValue = statsActual[i].value;
     }
 }
示例#2
0
        private void Init()
        {
            originalToStatDictionary.Clear();
            for (int i = 0; i < unitStats.Count; i++)
            {
                StatInitializer currentStat = unitStats[i];
                currentStat.stat = new Stat(currentStat.startingValue);

                statsActual.Add(currentStat.stat);
                originalToStatDictionary.Add(currentStat.originalStat, currentStat.stat);
            }
        }