private void DecrementStatistic(StatisticIndex index) { if (m_PlayerStatistics[index] > 1) { m_PointsRemaining += 1; m_PlayerStatistics[index] -= 1; } }
private void IncrementStatistic(StatisticIndex index) { if (m_PlayerStatistics[index] < 10 && m_PointsRemaining > 0) { m_PointsRemaining -= 1; m_PlayerStatistics[index] += 1; } }
public int GetStatistic(string statistic) { try { StatisticIndex statisticIndex = (StatisticIndex)Enum.Parse(typeof(StatisticIndex), statistic, true); return(m_AssociatedEntity.Statistics[statisticIndex].Value); } catch (Exception e) { return(-1); } }