using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class GameRoot : MonoBehaviour { public static GameRoot Instance = null; [Header("关卡索引")] public int _passIndex = 1; private AISys AISys; public InfoWnd infoWnd; public MenuWnd menuWnd; private void Awake() { Instance = this; AISys = GetComponent(); AISys.Init(); infoWnd.Init(); menuWnd.Init(); } private void Update() { } public void LoadScene(string sceneName) { SceneManager.LoadScene(sceneName); } }