// Start is called before the first frame update protected override void Start() { base.Start(); traitNUM = (trait as Trait_NUM); defaultIF = defaultText.GetComponent <InputField>(); minIF = minText.GetComponent <InputField>(); maxIF = maxText.GetComponent <InputField>(); incrementIF = incrementText.GetComponent <InputField>(); RefreshFields(); }
public override void SetPanel(object obj, ScrollListMonitor <Trait> monitor) { base.SetPanel(obj, monitor); traitNUM = trait as Trait_NUM; if (IsNull(traitNUM)) { return; } valueInput = valueText.GetComponent <InputField>(); Utils.SetInputFieldColors(valueInput); valueInput.text = traitNUM.Value; }