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 AddTickets(int Value) { PlayerDataModel.AddTickets(Value); TitlePanelPresenter.SetTicketsValue(PlayerDataModel.GetTickets()); }
public static bool TryTakeTickets(int Value) { return(PlayerDataModel.GetTickets() - Value >= 0); }