Exemple #1
0
 private void glass_LinesRemoved(object sender, LinesRemovedEventHadler e)
 {
     score += e.NumberOfDeleteLines * 100 * level.CurrentLevel;
     if (score > 1000 * level.CurrentLevel * level.CurrentLevel)
     {
         level.LevelUp();
     }
 }
Exemple #2
0
        private void OnLinesRemoved(LinesRemovedEventHadler e)
        {
            EventHandler <LinesRemovedEventHadler> handler = LinesRemoved;

            if (handler != null)
            {
                handler(this, e);
            }
        }