public void setColors(HoverableColors c) { if (c != null) { colors = c; } }
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(); }