Ejemplo n.º 1
0
 private void ColorThemeEvent()
 {
     if (CurrentColorTheme != m_previousColorTheme)
     {
         setColoring(mXMLParaser /*, CurrentColorTheme*/);
         if (OnColoringChanged != null)
         {
             OnColoringChanged.Invoke();
         }
         m_previousColorTheme = CurrentColorTheme;
     }
 }
Ejemplo n.º 2
0
        public void Awake()
        {
            mInstance   = this;
            mXMLParaser = new XMLParser();
            initColoring(new XMLParser());

            OnColoringChanged.AddListener(() =>
            {
                for (int i = 0; i < textListaction.Count; i++)
                {
                    var item = textListaction[i];
                    if (item.text == null)
                    {
                        textListaction.Remove(item);
                    }
                    else
                    {
                        item.action.Invoke();
                    }
                }

                for (int i = 0; i < imageListaction.Count; i++)
                {
                    var item = imageListaction[i];
                    if (item.image == null)
                    {
                        imageListaction.Remove(item);
                    }
                    else
                    {
                        item.action.Invoke();
                    }
                }
            });

            m_previousColorTheme = CurrentColorTheme;
        }