public void setColors(HoverableColors c)
 {
     if (c != null)
     {
         colors = c;
     }
 }
Beispiel #2
0
        void OnEnable()
        {
            if (groupHelper == null)
            {
                GetGroup();
            }
            if (image == null)
            {
                image = GetComponent <Image>();
            }

            if (groupHelper != null)
            {
                groupHelper.onGroupChange += OnGroupChange;
                groupHelper.OnElementEnabled(this);
                colors = groupHelper.colors;
                if (image != null)
                {
                    image.color = colors.baseColor;
                }
            }
            transform.SetAsLastSibling();
        }