Beispiel #1
0
 public void Setup(GenericParameter parameter, int paramItemId, string description)
 {
     this.parameter   = parameter;
     this.paramItemId = paramItemId;
     parameter.EnsureBoolItem(paramItemId);
     if (_label == null)
     {
         _label = label.GetComponent <Text>();
     }
     if (_toggle == null)
     {
         _toggle = toggle.GetComponent <Toggle>();
     }
     _label.text  = description;
     _toggle.isOn = parameter.boolsList[paramItemId];
 }