A class in Root.Township, Features.Gameplay.
Networked behaviour that gives a player a permanent PlayerUnlock, usually wired to an interaction. The unlock is saved with the object.
Constructors
| Member | What it is |
|---|
AddUnlockToPlayer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Properties
Methods
| Member | What it is |
|---|
void AddUnlock(Player player) | Server: gives the player (or the interactable's last interactor) the permanent unlock. Does nothing if none is set. |
void AddUnlock(Interactable interactable) | Server: gives the player (or the interactable's last interactor) the permanent unlock. Does nothing if none is set. |
Used in
Members of other types that take, return or hold a AddUnlockToPlayer: