ExplosiveBarrel

ExplosiveBarreli s a Destructible, which implements IDamageable

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

  • explosionRadius: Defines the radius of the explosion, indicating how far the impact of the explosion reaches from its center. Measured in units

  • explosionForce: Specifies the force exerted by the explosion, affecting objects within the explosion radius.

  • hurtPlayer: A boolean variable indicating whether the player character is affected by the explosion.

  • damage: Represents the amount of damage inflicted by the explosion on IDamageables

  • destroyedSFX: AudioClip to play on destruction.

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

Last updated