using UnityEngine;
using TMPro;

public class Scoreboard : MonoBehaviour
{
	public static Scoreboard instance;
	public bool playerDied = false;
	public bool noMoreBalloons = false;
	public bool timesUp = false;

	public int goldenBalloons;
	public int goldenBalloonsMax = 6;
	public TextMeshPro goldenText;

	public int blueBalloons;
	public int blueBalloonsMax = 18;
	public TextMeshPro blueText;

	public int purpleBalloons;
	public int purpleBalloonsMax = 12;
	public TextMeshPro purpleText;

	private void Update()
	{
		goldenText.text = goldenBalloons + "/" + goldenBalloonsMax;
		blueText.text = blueBalloons + "/" + blueBalloonsMax;
		purpleText.text = purpleBalloons + "/" + purpleBalloonsMax;

		if(Input.GetKeyDown(KeyCode.Escape))
		{
			Application.Quit();
		}
	}

	void Start()
    {
		instance = this;
	}
}
