private void Start() { if (firstWire) { Color c = offColor; c.a = c.a / 2; firstWire.ChangeColor(c); } }
public void ChangeColor(Color color) { if (wireCircle) { Color c = color; c.a = 1; sr.color = c; } else { sr.color = color; } //If there is a next wire in the string, change its color as well. if (nextWire != null) { nextWire.ChangeColor(color); } }