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