47 lines
774 B
C#
47 lines
774 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public enum GameState
|
|
{
|
|
/// <summary>
|
|
/// 练习
|
|
/// </summary>
|
|
practice,
|
|
/// <summary>
|
|
/// 考核
|
|
/// </summary>
|
|
examine,
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 程序初始化
|
|
/// </summary>
|
|
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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 加载场景
|
|
/// </summary>
|
|
public void LoadScene()
|
|
{
|
|
SceneManager.LoadScene("LoginScene");
|
|
}
|
|
}
|