13 lines
388 B
C#
13 lines
388 B
C#
using Actions;
|
|
using UnityEngine;
|
|
|
|
namespace UI {
|
|
public class ActionBusyUI : MonoBehaviour {
|
|
private void Start() {
|
|
UnitActionSystem.Instance.OnBusyChanged += UnitActionSystem_OnBusyChanged;
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
private void UnitActionSystem_OnBusyChanged(object sender, bool isBusy) => gameObject.SetActive(isBusy);
|
|
}
|
|
} |