protected override void PostInitialise() { disableButton = GetElementFromTag <TextButton>("DisableButton"); targetButton = GetElementFromTag <TextButton>("TargetButton"); disableButton.ConnectLeftClick(() => { targetButton.Enabled = !targetButton.Enabled; if (targetButton.Enabled) { targetButton.Text = "Enabled"; disableButton.Text = "Disable Button"; } else { targetButton.Text = "Disabled"; disableButton.Text = "Enable Button"; } }); }