示例#1
0
 public static void SetTreesCountAtIndex(int index, int newValue)
 {
     trees[index] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberTreesValue());
 }
示例#2
0
 public static void UpdateTreesCountAtGrade(QualityGrade grade, int changeValue)
 {
     trees[grade.GetHashCode()] = Mathf.Clamp((trees[grade.GetHashCode()] += changeValue), 0, PlayerSkills.GetMaxLumberTreesValue());
 }
示例#3
0
 public static void SetTreesCountAtGrade(QualityGrade grade, int newValue)
 {
     trees[grade.GetHashCode()] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberTreesValue());
 }