using NodeCanvas.Framework; using ParadoxNotion.Design; using UnityEngine; namespace NodeCanvas.Tasks.Actions { [Category("✫ Blackboard")] [Description("Create a new Vector out of 3 floats and save it to the blackboard")] public class ComposeVector : ActionTask { public BBParameter x; public BBParameter y; public BBParameter z; [BlackboardOnly] public BBParameter saveAs; protected override string info { get { return "New Vector as " + saveAs; } } protected override void OnExecute() { saveAs.value = new Vector3(x.value, y.value, z.value); EndAction(); } } }