using System; using System.Collections; using System.Collections.Generic; using BlueWaterProject; using Doozy.Runtime.UIManager.Containers; using UnityEngine; using UnityEngine.InputSystem; public class TycoonUi : MonoBehaviour { public UIView BuildListPopup { get; set; } public UIPopup PausePopup { get; set; } private string pausePopup => "PausePopup"; private void Init() { UiManager.Inst.TycoonUi = this; BuildListPopup = transform.Find("BuildListView").GetComponent(); if (PausePopup == null) PausePopup = UIPopup.Get(pausePopup); } private void Awake() { Init(); } private void OnEsc(InputValue value) { if (PausePopup == null) PausePopup = UIPopup.Get(pausePopup); if (!PausePopup.isVisible) PausePopup.Show(); else PausePopup.Hide(); } }