public void OnEnter() { var localURLPath = LancherPathUtils.GetWWWStreamingPath(LancherPathConst.ResourceConfigPath); LancherLoadUtils.Load(localURLPath, 10, context.loadingResourcesConfigProgress) .Then(SaveTextToBridge) .Done(LoadResConfigComplete) .Catch(CatchException); }
public void OnEnter() { var localURLPath = LancherPathUtils.GetWWWStreamingPath(LancherPathConst.ConfigPath); LancherLoadUtils.Load(localURLPath, 3) .Then(ParseWWWPrepareServerPath) .Done(JumpToLoadHttpServerConfig) .Catch(CatchException); }
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); } }