public void OnDestroy() { if (Application.isPlaying && !_applyColor) { _characterEditor.PickColor(_originalColor); } }
public void nextColor() { characterScript.setTarget(target); value = (value + 1) == colors.Count ? 0 : value + 1; characterScript.PickColor(colors[value]); label.text = colorNames[value]; }
public void nextColor() { characterScript.setTarget(targetBody); value = (value + 1) == colors.Count ? 0 : value + 1; characterScript.PickColor(colors[value]); characterScript.setTarget(targetHead); characterScript.PickColor(colors[value]); characterScript.setTarget(targetEars); characterScript.PickColor(colors[value]); label.text = "Skin " + value.ToString(); }