Skip to content

Some kind of player stats connected to UI #9

@maakep

Description

@maakep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions