28 lines
807 B
C#
28 lines
807 B
C#
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<E_SceneType>(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<UI_MenuBar>())
|
|
{
|
|
//UIManager.Instance.GetPanel<UI_MenuBar>().faultRegBtn;
|
|
}
|
|
}
|
|
}
|