예제 #1
0
    public void SetSelectedSkin(SkinPresenter selectedSkin)
    {
        if (_selectedSkin != null)
        {
            _selectedSkin.Deselect();
        }

        _selectedSkin = selectedSkin;
        _selectedSkin.Select();
    }
예제 #2
0
    private void OnSellButtonClicked(SkinData skinData, SkinPresenter presenter)
    {
        if (_balance.Balance < skinData.Price)
        {
            return;
        }

        _balance.Spend(skinData.Price);
        _skinSaved.Add(skinData);
        presenter.Unlock();
    }
예제 #3
0
 private void OnSelectedButtonClick(SkinData skinData, SkinPresenter presenter)
 {
     _skinSaved.SetCurrentSkin(skinData);
     _skinListView.SetSelectedSkin(presenter);
 }