#if GRAPH_DESIGNER /// --------------------------------------------- /// Behavior Designer /// Copyright (c) Opsive. All Rights Reserved. /// https://www.opsive.com /// --------------------------------------------- namespace Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals.Math { using Opsive.GraphDesigner.Runtime; using Opsive.GraphDesigner.Runtime.Variables; using UnityEngine; [NodeDescription("Compares two boolean values.")] [Shared.Utility.Category("Math")] public class BoolComparison : Conditional { [Tooltip("The first boolean.")] [SerializeField] protected SharedVariable m_Bool1; [Tooltip("The second boolean.")] [SerializeField] protected SharedVariable m_Bool2; /// /// Executes the task. /// /// The execution status of the task. public override TaskStatus OnUpdate() { return m_Bool1.Value == m_Bool2.Value ? TaskStatus.Success : TaskStatus.Failure; } } } #endif