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)); }
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)); }