Can this be done in a generic way?
Meaning, I want to add stats to the player and want them mapped to a UI element, with as little work as possible. Sounds like a tough nut.
private T _variable;
public T variable {
get { return _variable; }
set {
UI.Set(variable.VariableName(), value);
_variable = value;
}
}
Something like that, I guess? Then generating the variable in the canvas as well.
Can this be done in a generic way?
Meaning, I want to add stats to the player and want them mapped to a UI element, with as little work as possible. Sounds like a tough nut.
Something like that, I guess? Then generating the variable in the canvas as well.