private void UpdateView()
 {
     TitlePanelPresenter.SetCoinsValue(PlayerDataModel.GetCoins());
     TitlePanelPresenter.SetGemsValue(PlayerDataModel.GetGems());
     TitlePanelPresenter.SetTicketsValue(PlayerDataModel.GetTickets());
     TitlePanelPresenter.SetXpValue(PlayerDataModel.GetXp());
     TitlePanelPresenter.SetLevelValue(PlayerDataModel.GetLevel());
 }
Exemplo n.º 2
0
 public void AddCoins(int Value)
 {
     PlayerDataModel.AddCoins(Value);
     TitlePanelPresenter.SetCoinsValue(PlayerDataModel.GetCoins());
 }
Exemplo n.º 3
0
 public static bool TryTakeCoins(int Value)
 {
     return(PlayerDataModel.GetCoins() - Value >= 0);
 }