using AX.NetworkSystem; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SelectionDataBind : MonoBehaviour { private void Awake() { if (SceneManager.GetActiveScene().name == "RolesSelection" || (SceneManager.GetActiveScene().name == "CommandCenter" /*&& CurrentUserInfo.role == Role.总队指挥中心*/) ) NetworkManager.Default.SendRequestAsync("GET_DEPT_REQUEST", CurrentUserInfo.token); } }