diff --git a/Assets/Zion/Scripts/Adam/GameManager.cs b/Assets/Zion/Scripts/Adam/GameManager.cs index 2cedd851..ebc5b5a4 100644 --- a/Assets/Zion/Scripts/Adam/GameManager.cs +++ b/Assets/Zion/Scripts/Adam/GameManager.cs @@ -10,6 +10,7 @@ using Tenkoku.Core; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; +using UnityTemplateProjects; using static InterfaceManager; public class GameManager : MonoSingleton @@ -66,11 +67,13 @@ public class GameManager : MonoSingleton satelliteImagery.SetActive(false); postureBtn.onClick.AddListener(() => { + currentSpt.GetComponent().enabled = true; satelliteImagery.SetActive(false); ChangeView(0); }); teacherBtn.onClick.AddListener(() => { + currentSpt.GetComponent().enabled = false; satelliteImagery.SetActive(true); ChangeView(2); }); @@ -468,13 +471,6 @@ public class GameManager : MonoSingleton uavm.groupId = bdxx; } } - - if (uavm) - { - uavm.SetTipsColor(); - DroneViewDisplay.Instance.CreateUI(uavm, false); - } - Debug.Log($"是否是player{data.r3 == GlobalFlag.currentUser.user_id}"); device.GetComponent().FillInTheData(data.list_para, data); device.GetComponent().deviceID = data.id; @@ -482,7 +478,11 @@ public class GameManager : MonoSingleton { device.GetComponent().isPlayer = true; } - + if (uavm) + { + uavm.SetTipsColor(); + DroneViewDisplay.Instance.CreateUI(uavm, false); + } FormationManager.Instance.WhenSpawn(); }