A class in Root.Township, the global namespace.
Component on an interactable that swaps in different body controller settings for a player while they're interacting with it.
Constructors
| Member | What it is |
|---|
OverrideBodySettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private Interactable interactable | The interactable on the same object. |
private BodyControllerSettings settings | The body controller settings to use during the interaction. |
Methods
2 private and internal methods
| Member | What it is |
|---|
private void Awake() | Hooks the interactable's InteractionStarted. |
private void OverrideSettings(Interactable interactable, Interactor interactor) | Adds settings as an override on the player's body controller, lasting while the interactor still holds this interactable. |