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