Esempio n. 1
0
 public static void FireEvent(ScoreEventHandler _event)
 {
     if (_event != null)
     {
         _event();
     }
 }
Esempio n. 2
0
 public void ResetScore()
 {
     _score = 0;
     if (ScoreEventHandler != null)
     {
         ScoreEventHandler.Invoke(this, new ScoreEventArgs {
             Score = _score
         });
     }
 }
Esempio n. 3
0
 // TOOD: Refactor this into TopDown specific
 public void UpdateScore()
 {
     _score++;
     if (ScoreEventHandler != null)
     {
         ScoreEventHandler.Invoke(this, new ScoreEventArgs {
             Score = _score
         });
     }
 }