public void SelectBall(int nameOfBall) { var changeSkin = new ChangeSkinEventArgs { CurrentSkin = nameOfBall }; ChangeSkin?.Invoke(this, changeSkin); }
private void OnChangeSkin(object sender, ChangeSkinEventArgs e) { currentSkin = e.CurrentSkin; ChangeSkin?.Invoke(); SaveGame(); }