Skip to content

Instantly share code, notes, and snippets.

@Kryzarel
Created December 5, 2017 20:12
Show Gist options
  • Save Kryzarel/9c52d5536c6d547d92aa12cf7daae250 to your computer and use it in GitHub Desktop.
Save Kryzarel/9c52d5536c6d547d92aa12cf7daae250 to your computer and use it in GitHub Desktop.
Added parameterless constructor
public CharacterStat()
{
statModifiers = new List<StatModifier>();
StatModifiers = statModifiers.AsReadOnly();
}
public CharacterStat(float baseValue) : this()
{
BaseValue = baseValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment