protected override void Awake() { TableToValue.RegistEvent((UIVariable variable) => { this.variable = variable; IsActive = (Boolean)variable.value; gameObject.SetActive(IsReverse ? !IsReverse : IsActive); }, this.variable.name); }
protected override void Awake() { TableToValue.RegistEvent((UIVariable variable) => { this.UIText = GetComponent <Text>(); this.variable = variable; if (this.text == "") { UIText.text = (string)this.variable.value; } else { UIText.text = string.Format(this.text, this.variable.value); } }, this.variable.name); }