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 AddCoins(int Value) { PlayerDataModel.AddCoins(Value); TitlePanelPresenter.SetCoinsValue(PlayerDataModel.GetCoins()); }
public static bool TryTakeCoins(int Value) { return(PlayerDataModel.GetCoins() - Value >= 0); }