public override void ClearForReuse(Random random) { Random = random; Grid.Clear(); WcfGrid.ClearForReuse(); WcfGrid.SetRandom(random); }
public override void ClearForReuse(Random random) { Random = random; Grid.Clear(); if (WcfGrid.Width != Grid.Width || WcfGrid.Height != Grid.Height) { WcfGrid = Helpers.InitWcfGrid(random, Grid, TilesConfig); } else { WcfGrid.ClearForReuse(); WcfGrid.SetRandom(random); } WcfGrid.eventHandler = this; }