// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
usingUnityEngine;
usingUnityEngine.UI;
namespaceFungus
{
/// <summary>
/// The block will execute when the user toggles on the target UI toggle object.
/// </summary>
[EventHandlerInfo("UI",
"Toggle Changed",
"The block will execute when the state of the target UI toggle object changes. The state of the toggle is stored in the Toggle State boolean variable.")]
[AddComponentMenu("")]
publicclassToggleChanged:EventHandler
{
[Tooltip("The block will execute when the state of the target UI toggle object changes.")]
[SerializeField]protectedToggletargetToggle;
[Tooltip("The new state of the UI toggle object is stored in this boolean variable.")]