DropSpawner allows objects to drop from it. This is most typically used when an actor dies and items drop from it.

Public Methods

public GameObject DropObject()

Spawns a new instance of the object it’s meant to drop.

Public Members

public GameObject objectToSpawn

This lets you slot a prefab for the object which will drop.

public List objectsToDrop

Optional. This field allows you to make different items drop depending on the Attacks the player has enabled at the time. The “attackName” field lets you specify the name of an Attack, and pair that to a prefab which will drop if the player has that Attack enabled at the time the drop is initiated.