using Managers;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

namespace UI
{
    public class GameOverScreen : MonoBehaviour
    {
        [SerializeField] Image companyIcon;
        [SerializeField] TextMeshProUGUI companyName;
        [SerializeField] TextMeshProUGUI workingDays;
        [SerializeField] TextMeshProUGUI earnings;

        void Start()
        {
            var dataManager = DataManager.Instance;

            companyIcon.sprite = dataManager.Logo;
            companyName.text = dataManager.AgencyName;
            workingDays.text = Calendar.Instance.GetDaysCountFromGameStart().ToString();
            earnings.text = dataManager.EarnedMoney.ToString() + "$";
        }
    }
}