示例#1
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    private void SetupMap()
    {
        UI ui = (o != null) ? o.ui       : null;

        GameObject worldMap = (o != null) ? o.worldMap : null;


        m_map = (worldMap != null) ? worldMap.GetComponent <WebMap>() : null;

        if (m_map != null)
        {
            o.mapHandpick.Setup(o.cameraMap, new CORE.Plane(Vector3.zero, Vector3.up), null, m_map.GetLatitudeFrom3DCoord, m_map.GetLongitudeFrom3DCoord);

            m_map.Setup(o.mapHandpick, 12, 12, 256.0f, OnMapExitRequested);

            m_map.notice = (ui != null) ? ui.mapNotice : null;
        }
    }