1
This commit is contained in:
@@ -15,6 +15,10 @@ namespace BITKit
|
||||
public BBParameter<int> intParameter;
|
||||
public BBParameter<int> floatParameter;
|
||||
public BBParameter<string> stringParameter;
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{command}";
|
||||
}
|
||||
|
||||
protected override void OnExecute()
|
||||
{
|
||||
|
8
Src/UnityPluginsSupport/NodeCanvas/Pathfinding.meta
Normal file
8
Src/UnityPluginsSupport/NodeCanvas/Pathfinding.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e2a1c18f0c0d6348a76579e181a46d5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 468f5391afee97e45b1925bcf7fe6e41
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user