Beispiel #1
0
    public void OnEnter()
    {
        var localURLPath = LancherPathUtils.GetWWWStreamingPath(LancherPathConst.ResourceConfigPath);

        LancherLoadUtils.Load(localURLPath, 10, context.loadingResourcesConfigProgress)
        .Then(SaveTextToBridge)
        .Done(LoadResConfigComplete)
        .Catch(CatchException);
    }
Beispiel #2
0
    public void OnEnter()
    {
        var localURLPath = LancherPathUtils.GetWWWStreamingPath(LancherPathConst.ConfigPath);

        LancherLoadUtils.Load(localURLPath, 3)
        .Then(ParseWWWPrepareServerPath)
        .Done(JumpToLoadHttpServerConfig)
        .Catch(CatchException);
    }
Beispiel #3
0
    public void OnEnter()
    {
        if (!IsHaveLogoVideoInCache())
        {
            var localURLPath = LancherPathUtils.GetWWWStreamingPath(LancherPathConst.ResourceLogoVideoPath);

            LancherLoadUtils.Load(localURLPath, 10, context.loadingLogoVideoProgress)
            .Then(SaveLogoVideoToCache)
            .Done(LoadLogoVideoComplete)
            .Catch(CatchException);
        }
        else
        {
            LoadLogoVideoComplete(null);
        }
    }