With this component you can use raycast to extinguish the flames. Attach this to any gameobject you want to use for this.
Direction: Direction of the raycast (world coordinates)
Start offset: Raycast start offset in world coordinates.
Check frequency: How often the raycast is raycasted (Only if Repeating raycast is checked)
Raycast Radius: Radius of the raycast.
Ignite power multiplier: how much the area is incremented with each hit on the same place (Water flowing effect)
Max dist: Maximum distance of the raycast.
Mask: Raycast mask.
Repeating raycast: Start repeating raycast on Start()