Example #1
0
 private void onMinoDeleted(object sender, DeleteMinoInfo info)
 {
     for (int i = 0; i < info.LineCount; i++)
     {
         DeleteCountUp();
     }
 }
Example #2
0
        public void DeleteMino()
        {
            var eraseGroups = groups.Where(g => g.IsEntered);
            var lineCount   = eraseGroups.Count();
            var objectCount = eraseGroups.Sum(g => g.EnteredObjectCount);

            if (lineCount == 0)
            {
                return;
            }

            foreach (var group in eraseGroups)
            {
                group.DeleteMino();
            }

            var info = new DeleteMinoInfo(lineCount, objectCount);

            MinoDeleted?.Invoke(this, info);
            sfxManager.Play(IngameSfxType.MinoDelete);
        }