Exemplo n.º 1
0
    public void SelectBall(int nameOfBall)
    {
        var changeSkin = new ChangeSkinEventArgs {
            CurrentSkin = nameOfBall
        };

        ChangeSkin?.Invoke(this, changeSkin);
    }
Exemplo n.º 2
0
 private void OnChangeSkin(object sender, ChangeSkinEventArgs e)
 {
     currentSkin = e.CurrentSkin;
     ChangeSkin?.Invoke();
     SaveGame();
 }