예제 #1
0
    public static void InRealEnv()
    {
        IsInRealEnv = !IsInRealEnv;
        while (true)
        {
            if (GameObject.Find("Env_Mgr") != null)
            {
                DestroyImmediate(GameObject.Find("Env_Mgr"));
            }
            else
            {
                break;
            }
        }
        GameObject go = new GameObject();

        go.name = "Env_Mgr";
        go.transform.position = Vector3.zero;
        ToolsHelper.AddFileComment(go, MyDefaultPath.PublicEnvPath, ".cs");
        ToolsHelper.AddFileComment(go, MyDefaultPath.FormalEnvPath, ".cs");
        Debug.LogError("切换至正式模式");
    }