Exemple #1
0
 public static void SetFirewoodCountAtIndex(int index, int newValue)
 {
     firewood[index] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberFirewoodValue());
 }
Exemple #2
0
 public static void UpdateFirewoodCountAtGrade(QualityGrade grade, int changeValue)
 {
     firewood[grade.GetHashCode()] = Mathf.Clamp((firewood[grade.GetHashCode()] += changeValue), 0, PlayerSkills.GetMaxLumberFirewoodValue());
 }
Exemple #3
0
 public static void SetFirewoodCountAtGrade(QualityGrade grade, int newValue)
 {
     firewood[grade.GetHashCode()] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberFirewoodValue());
 }