Crate

Crate is a Destructible, which implements IDamageable

You can find a Crate Prefab uner Cowsins/Prefabs/DragAndDropExtras

  • maxHealth: Initial health of the destructible"

  • lootInside: Instantiate something cool when the object is destroyed, such as coins, a weapon, or any kind of loot, whatever you want! If this is empty, no reward will be instantiated

  • destroyedSFX: AudioClip to play on destruction.

  • destroyedObject: Object to get instantiated when the Crate is destroyed.

Last updated