roams around and reduces the risks of IRiskRecipient while it is in range
when a fire breaks out in its vicinity(collider enter) it runs there and tries to extinguish it
https://citybuilder.softleitner.com/manual/risks
|
enum | FireWalkerState { Prevention = 0
, ToFire = 1
, Extinguishing = 2
, FromFire = 3
} |
|
|
override string | SaveData () |
|
override void | LoadData (string json) |
|
|
PathType | ExtinguishPathType |
|
Object | ExtinguisPathTag |
|
float | ExtinguishAmount |
|
float | ExtinguishSpeed |
|
BoolEvent | IsRunningChanged |
|
BoolEvent | IsExtinguishingChanged |
|
Risk | Risk |
|
float | Amount = 100f |
|
|
override void | Update () |
|
override void | onMoved (Vector2Int position) |
|
override void | onFinished () |
|
override void | onComponentRemaining (IRiskRecipient risker) |
|
override void | onEntered (IBuilding building) |
| called when the building first enters the walkers area
|
|
override void | onRemaining (IBuilding building) |
| called on every frame the walkers area contains the building
|
|
virtual void | onComponentEntered (T buildingComponent) |
| called when the building component first enters the walkers area
|
|
virtual void | onComponentRemaining (T buildingComponent) |
| called on every frame the walkers area contains the building component
|
|
|
override float | Speed [get] |
|