Exemplo n.º 1
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    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);
            }
        }
    }
Exemplo n.º 2
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    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));
    }
Exemplo n.º 3
0
 private void Awake()
 {
     StartCoroutine(GetLocations());
     locationService = gameObject.GetComponent <LocationService>();
     webMapLoader    = gameObject.GetComponent <WebMapLoader>();
 }