using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class course : UIController { [SerializeField] Button Btn; [SerializeField] Image BG; [SerializeField] GameObject g1; // Start is called before the first frame update void Start() { Btn.onClick.AddListener(() => { if (UIManager.ins.LogOnState== LogOnState.ok) { BG.gameObject.SetActive(true); g1.SetActive(false); } else { UIManager.ins.Logon(); } }); } }