public void SetPlayerStats() { UnitStats = new Dictionary <StatType, float>(); UnitType = PlayerUnitData.PlayerUnitClass; if (UnitType != null && UnitType.ClassStatSettings.Length > 0) { UnitType.GenerateStats(this); } CurrentHP = new CombatStat(StatType.HEALTH, this); CurrentStamina = new CombatStat(StatType.STAMINA, this); }