Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public Label(int labelId, LabelAction labelAction)
 {
     this.labelId = labelId;
     this.name    = labelAction.name;
     this.color   = labelAction.GetColor();
 }