Пример #1
0
    void Start()
    {
        OperaStatus = AppOperState.Init;
        DebugLog.DebugLogInfo("-------------------------------进入场景分发器---------------------------------------");
        //创建资源文件夹
        Create_assets_path();

        if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.PPTPlayer)
        {
            SceneManager.LoadScene("WeiKePlayer");
            return;
        }
        show_progress = Unity_Tools.Get_scene_instance <ShowProgress>("LoadingCanvas_pc");
#if UNITY_EDITOR
        if (firstTest)
        {
            //StartCoroutine(App_tool.testMethod("游戏", "2", "game", "GA0101001", Get_app));//SA0101047//SA0000000//RA0100001//SA0C02001//

            // StartCoroutine(App_tool.testMethod("经络穴位", "24", "acu", "AA0100012N", Get_app));
            //StartCoroutine(App_tool.testMethod_acu("acu", "AA0100000N", Get_app));
            //StartCoroutine(App_tool.testMethod("人体构造", "44", "medical", "RA0801001", Get_app));
            //Get_app(App_tool.testMethod());
            //StartCoroutine(App_tool.testMethod_wk_lz("微课课程", "13", "microlesson", "WK0000001", Get_app));
            //StartCoroutine(App_tool.testMethod("肌肉动画", "29", "equip_drill", "MAO10001", Get_app));
            //StartCoroutine(App_tool.testMethod("测验练习", "exam", "qa001", Get_app));
            //StartCoroutine(App_tool.testMethod("人体构造", "2", "model", "SA0A01001", Get_app));//SA0201007//SA0202010
            // StartCoroutine(App_tool.testMethod("人体构造", "2", "animation", "DA0100039", Get_app));
            // StartCoroutine(App_tool.testMethod("微课课程", "2", "microlesson", "HMFWK001", Get_app));//HMFWK002
            //  StartCoroutine(App_tool.testMethod("人体构造", "44", "medical", "RA0801001", Get_app));
            //StartCoroutine(App_tool.testMethod("人体构造", "2", "sign_ssp", "SA0C01007", Get_app));//SA0101047//SA0000000//RA0100001//SA0C02001
            //  StartCoroutine(App_tool.testMethod("经络穴位", "24", "sign_acu", "AA0100002", Get_app));//SA0101047//SA0000000//RA0100001//SA0C02001//
            //StartCoroutine(App_tool.testMethod("人体构造", "2", "sign", "SA0604002", Get_app));//SA0903001//SA0903005//SA0903006//SA0903007
            Get_app(App_tool.testMethod_signnew("sign_new", "SA090C003", Get_app));//SA0101047//SA0000000//RA0100001//SA0C02001//SA0C02000//SA0C04002//
            //StartCoroutine(App_tool.testMethod("人体构造", "2", "model", "SA0000000", Get_app));//SA0101047//SA0000000//RA0100001//SA0801002
            firstTest = false;
        }
        else
        {
            firstTest = true;
            // StartCoroutine(App_tool.testMethod("人体构造", "44", "medical", "RA0801004", Get_app));
            // StartCoroutine(App_tool.testMethod("人体构造", "2", "model", "SA0801003", Get_app));
            // StartCoroutine(App_tool.testMethod("人体构造", "model", "SA0101047", Get_app));//SA0101047//SA0000000//RA0100001
            //StartCoroutine(App_tool.testMethod("经络穴位", "24", "sign_acu", "AA0100000", Get_app));//SA0101047//SA0000000//RA0100001//SA0C02001//
            //  StartCoroutine(App_tool.testMethod("人体构造", "2", "model", "SA0000000", Get_app));
            // StartCoroutine(App_tool.testMethod("微课课程", "2", "microlesson", "HMFWK001", Get_app));//HMFWK002
            // StartCoroutine(App_tool.testMethod("人体构造", "2", "model", "SA0101047", Get_app));//SA0103043
            // StartCoroutine(App_tool.testMethod("人体构造", "2", "model", "SA0101047", Get_app));
            //StartCoroutine(App_tool.testMethod("人体构造", "2", "animation", "DA0100050", Get_app));
            // StartCoroutine(App_tool.testMethod("人体构造", "44", "medical", get_id_list(), Get_app));
            // StartCoroutine(App_tool.testMethod("人体构造", "44", "medical", "RA0801001", Get_app));
            // StartCoroutine(App_tool.testMethod("测验练习", "2", "exam", "qa001", Get_app));
            // StartCoroutine(App_tool.testMethod("经络穴位", "24", "sign_acu", "AA0100005", Get_app));
            //StartCoroutine(App_tool.testMethod("经络穴位", "24", "acu", "AA0100009N", Get_app));
        }
#elif UNITY_ANDROID
        show_progress = Unity_Tools.Get_scene_instance <ShowProgress>("LoadingCanvas");
#elif UNITY_STANDALONE_WIN
        show_progress = Unity_Tools.Get_scene_instance <ShowProgress>("LoadingCanvas_pc");
        if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.plugin)
        {
            if (PublicClass.app != null)
            {
                Get_app(PublicClass.app);
            }
        }
        else
        {
            if (!PublicClass.is_enter_server_control)
            {
                InternalSocketMananger.instance.HideUnityWidows();
                DebugLog.DebugLogInfo("HideUnityWidows");
            }
        }
#endif
        if (PublicClass.app == null)
        {
            SetOperaToLoop();
        }
    }
Пример #2
0
 void Start()
 {
     Unity_Tools.Get_scene_instance <ShowProgress>("LoadingCanvas_pc").CloseProgress();
 }