Exemple #1
0
 public override void ClearForReuse(Random random)
 {
     Random = random;
     Grid.Clear();
     WcfGrid.ClearForReuse();
     WcfGrid.SetRandom(random);
 }
Exemple #2
0
 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;
 }