public virtual void UpdateScore(int score) { OnScoreChangedEventArgs args = new OnScoreChangedEventArgs() { NewScore = score }; OnScoreChanged.Invoke(this, args); }
public void HandleScoreChanged(object sender, OnScoreChangedEventArgs args) { UpdateScoreText(args.NewScore); }