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 AddGems(int Value)
 {
     PlayerDataModel.AddGems(Value);
     TitlePanelPresenter.SetGemsValue(PlayerDataModel.GetGems());
 }
예제 #3
0
 public static bool TryTakeGems(int Value)
 {
     return(PlayerDataModel.GetGems() - Value >= 0);
 }