public override void Dispose() { base.Dispose(); Gems.Clear(); IGems.Clear(); CellsList.Clear(); }
private async Task PopGems() { await Task.Delay(500); var shuffledGems = IGems.OrderBy(g => _randomizer.Next()).Select(g => g).ToList(); foreach (var gembase in shuffledGems) { Gem gem = (Gem)gembase; await Task.Delay((_randomizer.Next(100) + 10) * 4); gem.Pop(); } }