Join our Discord Channel
// (c) Copyright HutongGames, LLC 2010-2014. All rights reserved.namespace HutongGames.PlayMaker.Actions{ [ActionCategory(ActionCategory.Math)] [Tooltip("Sets the value of a Bool Variable.")] //Set you Custom Action Name Here and save with that name. DO NOT use the same name, it will be erased on updates. Custom names will not be erased. public class SetBoolValueDefTrue : FsmStateAction { [RequiredField] [UIHint(UIHint.Variable)] public FsmBool boolVariable; [RequiredField] public FsmBool boolValue; public bool everyFrame; public override void Reset() { // Set Default Variables here boolVariable = null; boolValue = true; everyFrame = false; } public override void OnEnter() { boolVariable.Value = boolValue.Value; if (!everyFrame) Finish(); } public override void OnUpdate() { boolVariable.Value = boolValue.Value; } }}