using System.Collections; using System.Collections.Generic; //using System.Runtime.Remoting.Metadata.W3cXsd2001; using UnityEngine; public class Subject4001Controller : SubjectControllerBase { // Start is called before the first frame update //public override void OnInit() //{ // GameManager.EventMgr.AddEventListener(Enum_EventType.SwitchScene, CheckBtnBySceneName); //} private void CheckBtnBySceneName(E_SceneType scene) { StopCoroutine(WaitSceneLoad()); StartCoroutine(WaitSceneLoad()); } private IEnumerator WaitSceneLoad() { yield return new WaitForSeconds(0.5f); if (UIManager.Instance.GetPanel()) { //UIManager.Instance.GetPanel().faultRegBtn; } } }