4 namespace HKI.Core.Variables
27 Boolean.OnValueChanged += ValueChangedFunction;
28 ValueChangedFunction();
31 Debug.LogWarning(
"This HKIVarToggle has no boolean value.");
38 Boolean.OnValueChanged -= ValueChangedFunction;
43 OnValueChanged.Invoke(Boolean.
Value);
This MonoBehaviour pathes the new boolean value to a function if the value changed. This could be used for enabling and disabling GameObjects by only using the editor and no code (like using a UI Button).
void ValueChangedFunction()
Implementation of a boolean value as a HKIVar via HKIVarGeneric.