Ejemplo n.º 1
0
    void TryHotUpdate()
    {
        SetupUI.instance.SetHint("版本检查中TryHotUpdate");

        switch (ApplicationEx.platform)
        {
            //case RuntimePlatform.WindowsWebPlayer:
            //WebPlayerCheckServerVersion();
            //return;
        }

        switch (ApplicationEx.platform)
        {
        case RuntimePlatform.Android:
            Logger.Log("GetSDCardPath " + URLs.GetSDCardPath());
            StartHotUpdate();
                        #if WINDOW_PACK
            LoadStreamingDllAndEnterGame();
                        #endif
            break;

        case RuntimePlatform.WindowsPlayer:
            //windows返回路径自带file://
            URLs.FILE_PROTOCOL = "";
            LoadStreamingDllAndEnterGame();
            break;

        case RuntimePlatform.IPhonePlayer:
            StartHotUpdate();
            break;

                        #if WIN_HOTUPDATE
        case RuntimePlatform.WindowsEditor:
            StartHotUpdate();
            break;
                        #endif
        default:
                        #if WINDOW_PACK
            LoadStreamingDllAndEnterGame();
                        #else
            EnterGame();
                        #endif
            break;
        }
    }