public void LevelUp() { level++; attack += playerCharacterClass.GetAttackStatIncreaseFromLevelUp(); range += playerCharacterClass.GetRangeStatIncreaseFromLevelUp(); speed += playerCharacterClass.GetSpeedStatIncreaseFromLevelUp(level); int healthIncrease = playerCharacterClass.GetHealthStatIncreaseFromLevelUp(); maxHealth += healthIncrease; if (currentHealth > 0) { currentHealth += healthIncrease; } }