public void UpdatedInputField() { string text = inputField.text.Trim(trimChars); if (text.Length > 0) { float val = float.Parse(text); val = ((val > 256 ? 255 : val) % 256) / 255; slider.value = val; switch (index) { case 0: fillArea.color = new Color(1f, 1f - val, 1f - val); break; case 1: fillArea.color = new Color(1f - val, 1f, 1f - val); break; case 2: fillArea.color = new Color(1f - val, 1f - val, 1f); break; } UpdatedColor.Invoke(index); } }
public void RemoveAt(int index) { ((IList <T>)list).RemoveAt(index); OnRemovedAt.Invoke(index); }
public void setIcon(Icon icon, int index) { icons[index] = icon; onChangeEvent.Invoke(index); }