This commit is contained in:
CortexCore
2023-08-11 23:57:37 +08:00
parent 936a94c84b
commit 75889ec34f
149 changed files with 6524 additions and 1043 deletions

View File

@@ -9,7 +9,8 @@
"GUID:517785bb4600a5140b47eac5fa49b8fc",
"GUID:6ef4ed8ff60a7aa4bb60a8030e6f4008",
"GUID:709caf8d7fb6ef24bbba0ab9962a3ad0",
"GUID:7efac18f239530141802fb139776f333"
"GUID:7efac18f239530141802fb139776f333",
"GUID:508392158bd966c4d9c21e19661a441d"
],
"includePlatforms": [],
"excludePlatforms": [],

View File

@@ -9,7 +9,7 @@ namespace BITKit
{
public class EntityBehaviourTree :EntityComponent, IHealthCallback,IEntityOverrideCallback
{
[SerializeField] private BehaviourTreeOwner behaviourTree;
public BehaviourTreeOwner behaviourTree;
[SerializeField] private Blackboard blackboard;
private readonly ValidHandle _allow=new();

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: eb1083205459dd34799a4ae42956c7a9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 825b55b80e458244d8c495b5e309b8a3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using BITKit.Sensors;
using NodeCanvas.Framework;
using UnityEngine;
namespace BITKit.NodeCanvas
{
/// <summary>
/// 智能目标检测,包括了以下行为:
/// <para>监测目标集群</para>
/// </summary>
public class SmartTargetDetectionNode : ActionTask
{
public BBParameter<SmartTargetSensor> sensor;
public BBParameter<Transform> target;
protected override void OnExecute()
{
target.SetValue(sensor.value.CurrentTarget);
EndAction();
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c72e222f903b1284cabe0eb2c7ffcc59
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: