using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.UI; using TMPro; public class UIManager : MonoBehaviour { public static UIManager Instance { get; private set; } [SerializeField] private GameObject _agentStatusPanel; [SerializeField] private GameObject _configSelectorPanel; private TMP_Dropdown _configDropdown; public TextMeshProUGUI agentPanelText; public TextMeshProUGUI simTimeText; public TMP_FontAsset Font; private UIMode curMode = UIMode.NONE; // Start is called before the first frame update void Awake() { // singleton if (Instance == null) Instance = this; else Destroy(gameObject); } void Start() { _configSelectorPanel.SetActive(false); SetupConfigSelectorPanel(); //inputManager = InputManager.Instance; //worldManager = WorldManager.Instance; } public void ToggleConfigSelectorPanel(){ _configSelectorPanel.SetActive(!_configSelectorPanel.activeSelf); } private void SetupConfigSelectorPanel(){ _configSelectorPanel.GetComponentInChildren