private void UpdateView() { TitlePanelPresenter.SetCoinsValue(PlayerDataModel.GetCoins()); TitlePanelPresenter.SetGemsValue(PlayerDataModel.GetGems()); TitlePanelPresenter.SetTicketsValue(PlayerDataModel.GetTickets()); TitlePanelPresenter.SetXpValue(PlayerDataModel.GetXp()); TitlePanelPresenter.SetLevelValue(PlayerDataModel.GetLevel()); }
public void AddGems(int Value) { PlayerDataModel.AddGems(Value); TitlePanelPresenter.SetGemsValue(PlayerDataModel.GetGems()); }
public static bool TryTakeGems(int Value) { return(PlayerDataModel.GetGems() - Value >= 0); }