Esempio n. 1
0
    private void PropagateFire()
    {
        //Debug.LogWarning(Random.value + " Propagating fire");

        //choose a random target among nearby neighbors
        IBurnable chosenTarget = burnableNeighbors[Random.Range(0, burnableNeighbors.Length)];

        chosenTarget.ChangeVirulence(propagationRate * blazeIntensity);
    }
Esempio n. 2
0
 private void Douse(IBurnable burnable)
 {
     burnable.ChangeVirulence(dousingPower);
 }
 private void Ignite(IBurnable target)
 {
     target.ChangeVirulence(arsonVirulence);
 }