Esempio n. 1
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));
    }