using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LeftBubbles : MonoBehaviour
{
    public TextAdaptor leftBubbles;
    public Color emptyColor;
    public Color normalColor;

    private GameManager game => GameManager.instance;

    private void Update()
    {
        var value = game.level.maxBubbles - game.level.bubbles.Count;
        leftBubbles.text = $"{value}";
        leftBubbles.color = value <= 0 ? emptyColor : Color.white;
    }

}
