This repository offers a solution to make adjusting difficulties in Unity a bit easier.
- FloatGrade is a class that holds a List filled with one value for each defined Difficulty.
FloatGrade.Value
returns the currently selected difficulty float value.- Use
FloatGrade.SetDifficulty(difficulty)
to change the selected difficulty. - Use the extension method from
DifficultyExtension
and callthis.SetDifficulty(difficulty)
on any Object that contains a FloatGrade field. Afterwards every FloatGrade field will be automaticially changed to the new difficulty, which makes it easier to adjust all FloatGrades at the same time.
The current selected difficulty will be highlighted in color. You change it with the dropdown right next to it.
The disabled field shows what Value would be returned at the moment.
Contains the different available Difficulties. Add, Remove or Change as many Difficulties as you like. The inspector will automaticially adapt to it. Although be sure to use Refactoring instead of manually changing it, otherwise it may break existing code of yours.