private void CreateNewEnemy() { newEnemy.PlayerName = enemynames[Random.Range(0, enemynames.Length)]; newEnemy.PlayerLevel = Random.Range(GameInformation.PlayerLevel - 2, GameInformation.PlayerLevel + 2); newEnemy.PlayerClass = classTypes[Random.Range(0, classTypes.Length)]; // randomly choosing a class out of the array above newEnemy.Stamina = statCalculations.CalulateStat(newEnemy.Stamina, StatCalculations.StatType.STAMINA, newEnemy.PlayerLevel, true); newEnemy.Endurance = statCalculations.CalulateStat(newEnemy.Endurance, StatCalculations.StatType.ENDURANCE, newEnemy.PlayerLevel, true); newEnemy.Intellect = statCalculations.CalulateStat(newEnemy.Intellect, StatCalculations.StatType.INTELLECT, newEnemy.PlayerLevel, true); newEnemy.Strength = statCalculations.CalulateStat(newEnemy.Strength, StatCalculations.StatType.STRENGTH, newEnemy.PlayerLevel, true); newEnemy.Agility = statCalculations.CalulateStat(newEnemy.Agility, StatCalculations.StatType.AGILITY, newEnemy.PlayerLevel, true); newEnemy.Mastery = statCalculations.CalulateStat(newEnemy.Mastery, StatCalculations.StatType.MASTERY, newEnemy.PlayerLevel, true); }