PlayerRoleProvider
A class in Root.Township, the global namespace.
Server: gives a player a fixed account role through the Alta web API when called, for example from a UnityEvent.
- Listed in Global namespace: P
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
PlayerRoleProvider() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private AssignableRoles roleToProvide | The role to give. |
Methods
| Member | What it is |
|---|---|
void GiveRoleToPlayer(Player player) | Asks the API to give roleToProvide to the player's account. Does not wait for the result. |