public void ChangeSelected(CustomizableColor _color) { if (_currentSelectedColor != null) { _currentSelectedColor.SetSelected(false); } _color.SetSelected(true); _currentSelectedColor = _color; }
private void SetColorActive(CustomizableColor color, string colorName) { if (Section == SectionType.Turret && _turretColor == colorName) { ChangeSelected(color); } else if (Section == SectionType.Body && _bodyColor == colorName) { ChangeSelected(color); } }