Esempio n. 1
0
    public virtual void UpdateScore(int score)
    {
        OnScoreChangedEventArgs args = new OnScoreChangedEventArgs()
        {
            NewScore = score
        };

        OnScoreChanged.Invoke(this, args);
    }
Esempio n. 2
0
 public void HandleScoreChanged(object sender, OnScoreChangedEventArgs args)
 {
     UpdateScoreText(args.NewScore);
 }