public void SetSelectedSkin(SkinPresenter selectedSkin) { if (_selectedSkin != null) { _selectedSkin.Deselect(); } _selectedSkin = selectedSkin; _selectedSkin.Select(); }
private void OnSellButtonClicked(SkinData skinData, SkinPresenter presenter) { if (_balance.Balance < skinData.Price) { return; } _balance.Spend(skinData.Price); _skinSaved.Add(skinData); presenter.Unlock(); }
private void OnSelectedButtonClick(SkinData skinData, SkinPresenter presenter) { _skinSaved.SetCurrentSkin(skinData); _skinListView.SetSelectedSkin(presenter); }