private void initialize()
    {
        if (!m_inited)
        {
            //Debug.Log ("======> init common ui manager");
            m_inited = true;
            launchCameras();
            launchCommonFont();

            m_CommonLayer = new NvUIDialogLayer(SystemUICameraTransform);
        }
    }
 public NvUIDialogLayerHandler createDlgLayer(string layerName)
 {
     if (m_layers.ContainsKey(layerName))
     {
         return(m_layers[layerName].getHandler());
     }
     else
     {
         NvUIDialogLayer layer = new NvUIDialogLayer(m_sceneRoot);
         m_layers.Add(layerName, layer);
         return(m_layers[layerName].getHandler());
     }
 }
 public bool destroyDlgLayer(string layerName)
 {
     if (m_layers.ContainsKey(layerName))
     {
         NvUIDialogLayer layer = m_layers[layerName];
         layer.destroyAllDialogs();
         m_layers.Remove(layerName);
         return(true);
     }
     else
     {
         return(false);
     }
 }
    private void Update()
    {
        if (activate)
        {
            foreach (KeyValuePair <string, NvUIDialogLayer> kv in m_layers)
            {
                NvUIDialogLayer layer = kv.Value;
                if (layer.enable)
                {
                    layer.update();
                }
            }

            UpdateImpl();
        }
    }
 public NvUIDialogLayerHandler( NvUIDialogLayer layer )
 {
     m_owner = layer;
 }
Exemple #6
0
 public NvUIDialogLayerHandler(NvUIDialogLayer layer)
 {
     m_owner = layer;
 }
    private void initialize()
    {
        if ( !m_inited )
        {
            //Debug.Log ("======> init common ui manager");
            m_inited = true;
            launchCameras();
            launchCommonFont();

            m_CommonLayer = new NvUIDialogLayer( SystemUICameraTransform );
        }
    }