Destructible
Last updated
Last updated
Implements from , so it can be damaged and destroyed.
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.
Damage ( float damage, bool isHeadshot )
Damages the IDamageable
damage: Damage to apply on the IDamageable
isHeadshot: Generally false for Destructibles.
Die( )
Destroys the Destructible