Exemplo n.º 1
0
        public void Dispose()
        {
            _timer.Dispose();
            _timer = null;

            _gameMoveLogic.Dispose();
            _gameMoveLogic = null;

            foreach (var player in Players)
            {
                player.Dispose();
            }
            Players.Clear();

            Tiles.Clear();
        }
Exemplo n.º 2
0
 public void StartTimer(Action <Game> processUpdate)
 {
     _timer = new ActionTimer(() => processUpdate(this), TimeSpan.FromMilliseconds(100));
     _timer.Start();
 }