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