Exemplo n.º 1
0
 private void CheckSectionCompleted()
 {
     foreach (var cubeByCellPosKvp in _cubesByCellPos)
     {
         if (cubeByCellPosKvp.Value.CubeType == CubeType.Empty)
         {
             return;
         }
     }
     _playerCube.Stop();
     SectionCompleted?.Invoke();
 }
 protected virtual async Task GoToNextSection()
 {
     await SectionCompleted.InvokeAsync();
 }