Narratech_TFG-Fernandez/IAV Robot/Assets/BehaviorBricks/Actions/System/Basic/SetBool.cs
using Pada1.BBCore.Framework;
using Pada1.BBCore.Tasks;
using Pada1.BBCore;

namespace BBUnity.Actions
{
    /// <summary>
    /// It is a basic action to associate a Boolean to a variable.
    /// </summary>
    [Action("Basic/SetBool")]
    [Help("Sets a value to a boolean variable")]
    public class SetBool : BasePrimitiveAction
    {
        

        ///<value>OutPut Boolean Parameter.</value>
        [OutParam("var")]
        [Help("output variable")]
        public bool var;


        ///<value>Input Boolean Parameter.</value>
        [InParam("value")]
        [Help("Value")]
        public bool value;

        /// <summary>Initialization Method of SetBool.</summary>
        /// <remarks>Initializes the Boolean value.</remarks>
        public override void OnStart()
        {
            var = value;
        }
        /// <summary>Method of Update of SetBool.</summary>
        /// <remarks>Complete the task.</remarks>
        public override TaskStatus OnUpdate()
        {
            return TaskStatus.COMPLETED;
        }
    }
}
