Skip to main content

PlayerDocks

A class in Root.Township, Alta.Inventory.

Restricts a set of docks on a player (such as belt and shoulder slots) so only their owner can use them.

Constructors​

MemberWhat it is
PlayerDocks()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private PickupDock[] docksThe child pickup docks being restricted.
private PlayerController ownerThe player controller allowed to use these docks.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Adds Filter to every dock's interaction filter.
private void Filter(Interactor interactor, Interactable interactable, ref bool result)Blocks the interaction when the interactor's player controller is not owner.