using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public enum GameState { /// /// 练习 /// practice, /// /// 考核 /// examine, } /// /// 程序初始化 /// public class GameInit : MonoBehaviour { public static GameInit Instance; public static GameState game_state; private void Awake() { Instance = this; } // Start is called before the first frame update void Start() { DontDestroyOnLoad(gameObject); } /// /// 加载场景 /// public void LoadScene() { SceneManager.LoadScene("LoginScene"); } }