Skip to main content

InteractableLastPlayerInteractorHandler

A class in Root.Township, the global namespace.

Keeps an interactable's LastPlayerInteractor when its entity is replaced by another, by copying it to the new entity's interactable.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Interactable interactableThe interactable whose last player is carried over.

Methods​

1 private and internal method
MemberWhat it is
private void Alta.Networking.IEntityReplaceHandler.ReplacedWith(NetworkEntity entity, ReplaceAvoidFlags replaceFlags)Copies LastPlayerInteractor to the same component on the replacing entity.