//**************************************************************************************************** // //**************************************************************************************************** public void SubmitLoadingRequest(WebMapLoader loader, LoadingIcon loadIcon) { if (loader != null) { m_loadRequest.@params = m_location; if (loader.Queue(m_loadRequest)) { m_loadIcon = loadIcon; texture = loadIcon.texture; ShowLoadingFrame(true); } } }
//**************************************************************************************************** // //**************************************************************************************************** public bool ResolveDependencies() { m_loader = GetComponent <WebMapLoader>(); m_camera = GetComponentInChildren <Camera>(); if (m_loader != null) { m_loader.map = this; m_loader.indicator = HUDDLoad.Instance; } if (m_camera != null) { m_initialCamXForm.FromTransform(m_camera.transform, XForm.SPACE.LOCAL); } return((m_camera != null) && (m_loader != null)); }
private void Awake() { StartCoroutine(GetLocations()); locationService = gameObject.GetComponent <LocationService>(); webMapLoader = gameObject.GetComponent <WebMapLoader>(); }