using NodeCanvas.Framework; using ParadoxNotion.Design; using UnityEngine; namespace NodeCanvas.Tasks.Actions { [Category("✫ Blackboard")] [Description("Create up to 3 floats from a Vector and save them to blackboard")] public class DecomposeVector : ActionTask { public BBParameter targetVector; [BlackboardOnly] public BBParameter x; [BlackboardOnly] public BBParameter y; [BlackboardOnly] public BBParameter z; protected override string info { get { return "Decompose Vector " + targetVector; } } protected override void OnExecute() { x.value = targetVector.value.x; y.value = targetVector.value.y; z.value = targetVector.value.z; EndAction(); } } }