Exemple #1
0
 public static void SetLogsCountAtIndex(int index, int newValue)
 {
     logs[index] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberLogsValue());
 }
Exemple #2
0
 public static void UpdateLogsCountAtGrade(QualityGrade grade, int changeValue)
 {
     logs[grade.GetHashCode()] = Mathf.Clamp((logs[grade.GetHashCode()] += changeValue), 0, PlayerSkills.GetMaxLumberLogsValue());
 }
Exemple #3
0
 public static void SetLogsCountAtGrade(QualityGrade grade, int newValue)
 {
     logs[grade.GetHashCode()] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberLogsValue());
 }