private void Update()
    {
        if (m_QueuePopupFailedMessage.Count > 0 || m_QueuePopupInfoMessage.Count > 0)
        {
            if (m_workingDialog == null)
            {
                List <MessageDescriptor> dsList = m_QueuePopupFailedMessage.Count > 0 ? m_QueuePopupFailedMessage : m_QueuePopupInfoMessage;
                if (dsList.Count > 0)
                {
                    //MessageDescriptor ds = dsList[0];
                    dsList.RemoveAt(0);
                    //showMessageBox( ds.details, ds.title, NvMessageBox.EMessageBoxStyle.eStyle_OkayOnly, ds.cb );
                }
            }
        }
        else
        {
            //if ( NvGame.gIsGamePaused )
            {
                //NvGame.gIsGamePaused = false;
            }
        }

        if (m_WillShowIndicator)
        {
            m_ShowIndicatorAccl += Time.deltaTime;
            if (m_ShowIndicatorAccl > m_ShowIndicatorThreshold)
            {
                m_WillShowIndicator = false;
                m_loadingIndicatorSprite.enabled  = true;
                m_loadingIndicatorRotator.enabled = true;
            }
        }

        if (m_PgWillShowIndicator)
        {
            m_PgShowIndicatorAccl += Time.deltaTime;
            if (m_PgShowIndicatorAccl > m_PgShowIndicatorThreshold)
            {
                m_PgWillShowIndicator      = false;
                m_LoadingPgSprite.enabled  = true;
                m_LoadingPgRotator.enabled = true;
            }
        }


        if (m_CommonLayer != null)
        {
            m_CommonLayer.update();
        }

        Vector3 ratio = Utility.GetScreenRatio();

        if (mNGUI2DDialogCameraTr.localScale != ratio)
        {
            mNGUI2DDialogCameraTr.localScale = ratio;
        }
    }
    private void Update()
    {
        if (activate)
        {
            foreach (KeyValuePair <string, NvUIDialogLayer> kv in m_layers)
            {
                NvUIDialogLayer layer = kv.Value;
                if (layer.enable)
                {
                    layer.update();
                }
            }

            UpdateImpl();
        }
    }