Exemple #1
0
 public void MoveDown()
 {
     if (Mind.CanMoveDown(Playground))
     {
         Playground.MoveDown();
     }
 }
Exemple #2
0
        public void Tick()
        {
            if (Mind.CanMoveDown(Playground))
            {
                Playground.MoveDown();
            }
            else
            {
                Playground.FreezBlock();

                var f = Mind.FindFullRow(Playground);
                while (f.isFullRow)
                {
                    Playground.RemoveRow(f.index);
                    Score += 10;
                    scored?.Invoke();
                    f = Mind.FindFullRow(Playground);
                }

                InsertBlock();
            }
        }