|
@@ -1,9 +1,10 @@
|
|
|
using System.Collections;
|
|
|
using GHZLangChao;
|
|
|
+using Blue;
|
|
|
using UnityEngine;
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
-public class ChooseManager : MonoBehaviour
|
|
|
+public class ChooseManager : MonoBehaviour,IController
|
|
|
{
|
|
|
[SerializeField] private GameObject Tip;
|
|
|
[SerializeField] private GameObject ShowDevice => SceneIOCContainer.Instance.Pull("ShowDevice") as GameObject;
|
|
@@ -12,6 +13,9 @@ public class ChooseManager : MonoBehaviour
|
|
|
{
|
|
|
StartCoroutine(ControlTip());
|
|
|
ShowDevice.SetActive(true);
|
|
|
+
|
|
|
+
|
|
|
+ this.RegisterEvent<GaiLanInfoActiveEvent>(GaiLanInfoActive);
|
|
|
}
|
|
|
|
|
|
public void GotoXunJian()
|
|
@@ -32,4 +36,11 @@ public class ChooseManager : MonoBehaviour
|
|
|
yield return new WaitForSeconds(3);
|
|
|
Tip.SetActive(false);
|
|
|
}
|
|
|
+
|
|
|
+ #region 事件监听
|
|
|
+ private void GaiLanInfoActive(GaiLanInfoActiveEvent e)
|
|
|
+ {
|
|
|
+ ShowHide_Toggle.interactable = e.Active;
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
}
|