1
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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<NavMeshAgent>
|
||||
{
|
||||
public BBParameter<bool> overrideUpdateRotation = false;
|
||||
public BBParameter<bool> overrideUpdatePosition = false;
|
||||
protected override void OnExecute()
|
||||
{
|
||||
agent.updateRotation = overrideUpdateRotation.value;
|
||||
agent.updatePosition = overrideUpdatePosition.value;
|
||||
EndAction();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user