using System; using System.Collections; using System.Collections.Generic; using NodeCanvas.Framework; using ParadoxNotion.Design; using UnityEngine; using UnityEngine.AI; namespace BITKit.NodeCanvas.Pathfinding { [Category("Pathfinding")] public class SetNavMeshAgentOptions : ActionTask { public BBParameter overrideUpdateRotation = false; public BBParameter overrideUpdatePosition = false; protected override string info => $"UpdatePosition:{overrideUpdatePosition.value}\nUpdateRotation:{overrideUpdateRotation.value}"; protected override void OnExecute() { agent.updateRotation = overrideUpdateRotation.value; agent.updatePosition = overrideUpdatePosition.value; EndAction(); } } }