Esempio n. 1
0
 public override void Dispose()
 {
     base.Dispose();
     Gems.Clear();
     IGems.Clear();
     CellsList.Clear();
 }
Esempio n. 2
0
        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();
            }
        }