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