EquipmentPickup
A class in Root.Township, Alta.Customization.
Customization pickup for equipment, backed by a networked entity spawned from the pickup's prefab.
- Listed in Customization and screenshots
- Inherits or implements
CustomizationPickup
Constructors
| Member | What it is |
|---|---|
EquipmentPickup() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
| Member | What 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. |