using UnityEngine;
using UnityEngine.UI;

[RequireComponent(typeof(Button))]
public class SystemLogicButton : MonoBehaviour
{
    private void Awake()
    {
        var button = GetComponent<Button>();
        button.onClick.AddListener(OnButtonClick);
    }

    private static void OnButtonClick()
    {
        UIManager.ShowUI(UIInfo.SystemAndAutoFight);
    }
}