using System;
using UniRx;
using UnityEngine;
using UnityEngine.UI;

namespace MyGame.Scenes.MiniGame.Scripts
{
    public class HeaderView : MonoBehaviour
    {
        [SerializeField] private Text text;
        [SerializeField] private Text timeText;

        public void ChangeItemCount(int value) => text.text = value.ToString();

        public void ChangeTimeCount(float newTime)
        {
            timeText.text = $"{newTime:0}";
        }
    }
}