Ejemplo n.º 1
0
    public override void initialize(World world, int id)
    {
        base.initialize(world, id);

        this.timeRemaining = Random.Range(this.burnTimeRange.x, this.burnTimeRange.y);

        this.StartCoroutine(EntityFire.fireSpread(this.world, this.position, this.fireSpreadRange));
    }
Ejemplo n.º 2
0
    public override void onCreate(World world, CellState state, Position pos)
    {
        base.onCreate(world, state, pos);

        this.StartCoroutine(EntityFire.fireSpread(this.world, this.pos, this._fireSpreadRate));
    }