private void UpdateView()
 {
     TitlePanelPresenter.SetCoinsValue(PlayerDataModel.GetCoins());
     TitlePanelPresenter.SetGemsValue(PlayerDataModel.GetGems());
     TitlePanelPresenter.SetTicketsValue(PlayerDataModel.GetTickets());
     TitlePanelPresenter.SetXpValue(PlayerDataModel.GetXp());
     TitlePanelPresenter.SetLevelValue(PlayerDataModel.GetLevel());
 }
示例#2
0
 public void AddTickets(int Value)
 {
     PlayerDataModel.AddTickets(Value);
     TitlePanelPresenter.SetTicketsValue(PlayerDataModel.GetTickets());
 }
示例#3
0
 public static bool TryTakeTickets(int Value)
 {
     return(PlayerDataModel.GetTickets() - Value >= 0);
 }