Table of Contents

Class BurnableBehaviour

Namespace
GrindFest
Assembly
GrindFest.dll

Component for objects that can burn and act as fuel. Examples: logs, coal, arrows, torches, wooden structures.

public class BurnableBehaviour : MonoBehaviour
Inheritance
object
BurnableBehaviour

Fields

BurnRate
CanBeIgnited
CanSpreadFire
CurrentFuel
DamagePerSecond
DamageRadius
FireSpawnOffset
FireSpreadCheckInterval
FireVFXPrefab
FuelType
IgnitionDelay
MaxFuel
ScaleVFXWithFuel
SpreadRadius
StartsOnFire

Properties

HasFuel

Does this object have fuel remaining?

IsOnFire

Is this object currently on fire?

Methods

AddFuel(float)

Add fuel to this burnable

Extinguish()

Extinguish the fire

Ignite()

Set this object on fire

ReceiveHeat(float)

Called by FireSourceBehaviour when this object is in an ignition zone. Handles delayed ignition.

ResetIgnitionProgress()

Reset ignition progress (called when leaving fire zone)

Events

OnExtinguished

Fired when fire is extinguished (manually or fuel depleted)

OnFuelDepleted

Fired when all fuel has been consumed

OnIgnited

Fired when this object catches fire