コード例 #1
0
    public void OnEnter()
    {
        var localURLPath = LancherPathUtils.GetWWWStreamingPath(LancherPathConst.ResourceConfigPath);

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

        LancherLoadUtils.Load(localURLPath, 3)
        .Then(ParseWWWPrepareServerPath)
        .Done(JumpToLoadHttpServerConfig)
        .Catch(CatchException);
    }
コード例 #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);
        }
    }