Skip to main content

EquipmentPickup

A class in Root.Township, Alta.Customization.

Customization pickup for equipment, backed by a networked entity spawned from the pickup's prefab.

Constructors​

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

Methods​

MemberWhat it is
override void HandlePlacementResult(bool wasAdded)Only runs the base handling (destroying the pickup) when the item was added.
override CustomizationPickup Spawn(ICustomizationDefinition item, CustomizationArguments[] arguments, Transform parent)Spawns a new copy of the entity's prefab through the network spawner and gives it the definition; arguments and parent are ignored.
protected override void DestroyPickup()Destroys the pickup's entity across the network scene.