DestroyObjectAction - CodingDino/Dino-Unity-Toolkit GitHub Wiki

The DestroyObjectAction component destroys the specified GameObject. It can be used to kill enemies or pick up items.

This is an Action component, and therefore must be triggered by a separate Activator component. Actions, Activators, and Data make up the core system for the Dino Unity Toolkit.

Image: DestroyObjectAction attached to a player's feet to create a stomp attack. A OnTrigger2DActivator component is used to activate the action and determine which object should be destroyed.

Actions

This component has several Action functions that can be triggered by Activators.

ActionDestroyObject()

This action destroys the provided GameObject, removing it and all its children and components from the scene.

Parameter: Description:
To Destroy The GameObject that should be destroyed.