internal Color GetSelectedLabelColor() { LabelAction selected = GetSelectedLabelAction(); if (selected != null) { return(selected.GetColor()); } Debug.Log("Unable to find a selected label color"); return(UnityEngine.Random.ColorHSV()); }
public Label(int labelId, LabelAction labelAction) { this.labelId = labelId; this.name = labelAction.name; this.color = labelAction.GetColor(); }