A class in Root.Township, Alta.Meta.Friends.
One user entry on the friends board, with optional accept and reject buttons.
Constructors
| Member | What it is |
|---|
UserToken() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private Action<UserToken> accept | Callback run when the player presses accept; the accept button only shows when it's set. |
private GameObject acceptButton | Accept button object, shown when an accept callback is given. |
private Action<UserToken> reject | Callback run when the player presses reject; the reject button only shows when it's set. |
private GameObject rejectButton | Reject button object, shown when a reject callback is given. |
private TextRenderer username | Text showing the user's name. |
Properties
Methods
| Member | What it is |
|---|
void Run(bool hasAccepted) | Runs the accept or reject action. |
void Setup(UserInfo userInfo, FriendsManager manager, Action<UserToken> accept, Action<UserToken> reject) | Sets the user, name text and actions. A button is hidden when its action is null. |
Used in
Members of other types that take, return or hold a UserToken: