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

public class ActionBusyUI : MonoBehaviour
{
    private void Start() {
        UnitActionSystem.Instance.OnSelectedUnitChanged += UnitActionSystem_onSelectedUnitChanged;
        UnitActionSystem.Instance.OnBusyChanged += UnitActionSystem_OnBusyChanged;
        transform.gameObject.SetActive(false);       
    }
    private void UnitActionSystem_onSelectedUnitChanged(object sender, EventArgs empty) {
    }
    public void UnitActionSystem_OnBusyChanged(object sender, BusyArgs busyArgs) {
        transform.gameObject.SetActive(busyArgs.busy);        
    }
}