コード例 #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());
        }
コード例 #2
0
 public Label(int labelId, LabelAction labelAction)
 {
     this.labelId = labelId;
     this.name    = labelAction.name;
     this.color   = labelAction.GetColor();
 }