Пример #1
0
 public void BreakingOfRules(object sender, GameEventArgs e)
 {
     Console.WriteLine(e.NameOfPlayer + " broke of rules!");
 }
Пример #2
0
        public void OnBreaking(string playerLastName)
        {
            var args = new GameEventArgs(playerLastName);

            BreakingOfRules?.Invoke(this, args);
        }
Пример #3
0
 public void Goal(object sender, GameEventArgs e)
 {
     Console.WriteLine(e.NameOfPlayer + " scored!");
 }
Пример #4
0
        public void OnGoal(string playerLastName)
        {
            var args = new GameEventArgs(playerLastName);

            Goal?.Invoke(this, args);
        }