Example #1
0
 void OnQueryTextureEvt(QueryTextureEvt args)
 {
     // current url is requested and texture is available
     if (args.url == appImgDS._lastReqUrl && appImgDS._urlTexture != null)
     {
         // urlsDict = null, so only update texture at the destination
         PublishUrlsUpdateEvt(appImgDS._lastReqUrl, appImgDS._urlTexture);
     }
     else// different url is requested or texture is not available
     {
         appImgDS._lastReqUrl = args.url; // always update to the latest query
         _proxy.ReqTexture(args.url, ImgProxy.TextureCB_CallerID.APP_IMG);
     }
 }
Example #2
0
    void OnChange_HomeDDN(Dropdown hddn)
    {
        // on every chg disable, enable when texture back
        BtnToRegionScene.interactable = false;
        _regionProvider.ReNewRegionDS();

        string url = GetCurrentUrl();

        if (string.IsNullOrEmpty(url))
        {
            return;
        }

        _regionProvider.ReqRegionsByUrl(url);

        QueryTextureEvt qt = new QueryTextureEvt();

        qt.url = url;
        _signalBus.Fire(qt);
    }