public void DeleteLines() { var eraseGroups = groups.Where(g => g.EnteredAll); var lineCount = eraseGroups.Count(); var objectCount = eraseGroups.Sum(g => g.EnteredObjectCount); if (lineCount == 0) { return; } foreach (var group in eraseGroups) { group.DeleteLine(); } var info = new DeleteMinoInfo(lineCount, objectCount); Debug.Log($"lines: {info.LineCount}, objects: {info.ObjectCount}"); LineDeleted?.Invoke(this, info); sfxManager.Play(TetoSfxType.Delete); }
void OnLineDeleted(LineEventArgs e) { LineDeleted?.Invoke(this, e); }
public void OnLineDeleted(ILine e) { LineDeleted?.Invoke(this, e); }