Skip to content

Commit 32b7359

Browse files
committed
Working Examples
1 parent 2c7f36d commit 32b7359

File tree

3 files changed

+39
-22
lines changed

3 files changed

+39
-22
lines changed

Assets/AI/Nodes/DebugOutNode.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using System;
22
using System.Collections;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
63
using UnityEngine;
74

85
namespace Assets.Scripts.AI.Nodes

Assets/Examples/test2.asset

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,21 @@ MonoBehaviour:
1818
\ \"Depth\": -1,\r\n \"HasChildren\": true,\r\n \"Name\": \"New Root\",\r\n
1919
\ \"ID\": -1\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Components.Selector\",\r\n
2020
\ \"Depth\": 0,\r\n \"HasChildren\": true,\r\n \"Name\": \"Selector 0\",\r\n
21-
\ \"ID\": 0\r\n },\r\n {\r\n \"MoveSpeed\": 2.5,\r\n \"UpdatePlayersTickInterval\":
21+
\ \"ID\": 0\r\n },\r\n {\r\n \"MoveSpeed\": 10.0,\r\n \"UpdatePlayersTickInterval\":
2222
6,\r\n \"UpdateSelfPositionTickInterval\": 3,\r\n \"ElementType\": \"Assets.Scripts.AI.Nodes.MoveEnemyIfCloseToPlayer\",\r\n
2323
\ \"Depth\": 1,\r\n \"HasChildren\": false,\r\n \"Name\": \"MoveEnemyIfCloseToPlayer
2424
3\",\r\n \"ID\": 3\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Decorators.Inverter\",\r\n
2525
\ \"Depth\": 1,\r\n \"HasChildren\": true,\r\n \"Name\": \"Inverter 4\",\r\n
26-
\ \"ID\": 4\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Components.Sequencer\",\r\n
27-
\ \"Depth\": 2,\r\n \"HasChildren\": true,\r\n \"Name\": \"Sequencer 5\",\r\n
28-
\ \"ID\": 5\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Nodes.DebugOutNode\",\r\n
29-
\ \"Depth\": 3,\r\n \"HasChildren\": false,\r\n \"Name\": \"DebugOutNode
30-
7\",\r\n \"ID\": 7\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Nodes.DebugOutNode\",\r\n
31-
\ \"Depth\": 3,\r\n \"HasChildren\": false,\r\n \"Name\": \"DebugOutNode
32-
6\",\r\n \"ID\": 6\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Decorators.Inverter\",\r\n
33-
\ \"Depth\": 1,\r\n \"HasChildren\": true,\r\n \"Name\": \"Inverter 1\",\r\n
26+
\ \"ID\": 4\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Decorators.Inverter\",\r\n
27+
\ \"Depth\": 2,\r\n \"HasChildren\": true,\r\n \"Name\": \"Inverter 8\",\r\n
28+
\ \"ID\": 8\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Components.Sequencer\",\r\n
29+
\ \"Depth\": 3,\r\n \"HasChildren\": true,\r\n \"Name\": \"Sequencer 5\",\r\n
30+
\ \"ID\": 5\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Decorators.Inverter\",\r\n
31+
\ \"Depth\": 4,\r\n \"HasChildren\": true,\r\n \"Name\": \"Inverter 1\",\r\n
3432
\ \"ID\": 1\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Nodes.DebugOutNode\",\r\n
35-
\ \"Depth\": 2,\r\n \"HasChildren\": false,\r\n \"Name\": \"DebugOutNode
36-
2\",\r\n \"ID\": 2\r\n }\r\n]"
33+
\ \"Depth\": 5,\r\n \"HasChildren\": false,\r\n \"Name\": \"DebugOutNode
34+
2\",\r\n \"ID\": 2\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Nodes.DebugOutNode\",\r\n
35+
\ \"Depth\": 4,\r\n \"HasChildren\": false,\r\n \"Name\": \"DebugOutNode
36+
7\",\r\n \"ID\": 7\r\n },\r\n {\r\n \"ElementType\": \"Assets.Scripts.AI.Nodes.DebugOutNode\",\r\n
37+
\ \"Depth\": 4,\r\n \"HasChildren\": false,\r\n \"Name\": \"DebugOutNode
38+
6\",\r\n \"ID\": 6\r\n }\r\n]"

Assets/TestScene.unity

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ Transform:
187187
m_PrefabParentObject: {fileID: 0}
188188
m_PrefabInternal: {fileID: 0}
189189
m_GameObject: {fileID: 192575519}
190-
m_LocalRotation: {x: 0.12919289, y: -0, z: -0, w: 0.9916195}
191-
m_LocalPosition: {x: 0, y: 7.75, z: -10}
190+
m_LocalRotation: {x: 0.3053797, y: 0.2483812, z: -0.08292925, w: 0.9155178}
191+
m_LocalPosition: {x: 2.34, y: 13.7, z: -1.56}
192192
m_LocalScale: {x: 1, y: 1, z: 1}
193193
m_Children: []
194194
m_Father: {fileID: 0}
195195
m_RootOrder: 0
196-
m_LocalEulerAnglesHint: {x: 14.846001, y: 0, z: 0}
196+
m_LocalEulerAnglesHint: {x: 36.895, y: 30.355001, z: -0.010000001}
197197
--- !u!1 &374731282
198198
GameObject:
199199
m_ObjectHideFlags: 0
@@ -205,6 +205,7 @@ GameObject:
205205
- component: {fileID: 374731285}
206206
- component: {fileID: 374731284}
207207
- component: {fileID: 374731283}
208+
- component: {fileID: 374731287}
208209
m_Layer: 0
209210
m_Name: Enemy
210211
m_TagString: Untagged
@@ -278,6 +279,23 @@ Transform:
278279
m_Father: {fileID: 0}
279280
m_RootOrder: 2
280281
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
282+
--- !u!114 &374731287
283+
MonoBehaviour:
284+
m_ObjectHideFlags: 0
285+
m_PrefabParentObject: {fileID: 0}
286+
m_PrefabInternal: {fileID: 0}
287+
m_GameObject: {fileID: 374731282}
288+
m_Enabled: 1
289+
m_EditorHideFlags: 0
290+
m_Script: {fileID: 11500000, guid: 73bc91841bad4424992751c051af5030, type: 3}
291+
m_Name:
292+
m_EditorClassIdentifier:
293+
FileName:
294+
BehaviorTreeFile: {fileID: 11400000, guid: f4cb4c96e175fa243baf0700d4057360, type: 2}
295+
SecondsBetweenTicks: 0.1
296+
TimesToTick: -1
297+
spliceNewIntoTree: 0
298+
SpliceList: []
281299
--- !u!1 &761835721
282300
GameObject:
283301
m_ObjectHideFlags: 0
@@ -389,7 +407,7 @@ Light:
389407
serializedVersion: 8
390408
m_Type: 1
391409
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
392-
m_Intensity: 1
410+
m_Intensity: 0.75
393411
m_Range: 10
394412
m_SpotAngle: 30
395413
m_CookieSize: 10
@@ -398,17 +416,17 @@ Light:
398416
m_Resolution: -1
399417
m_CustomResolution: -1
400418
m_Strength: 1
401-
m_Bias: 0.05
402-
m_NormalBias: 0.4
403-
m_NearPlane: 0.2
419+
m_Bias: 0
420+
m_NormalBias: 1.08
421+
m_NearPlane: 0.1
404422
m_Cookie: {fileID: 0}
405423
m_DrawHalo: 0
406424
m_Flare: {fileID: 0}
407425
m_RenderMode: 0
408426
m_CullingMask:
409427
serializedVersion: 2
410428
m_Bits: 4294967295
411-
m_Lightmapping: 4
429+
m_Lightmapping: 2
412430
m_AreaSize: {x: 1, y: 1}
413431
m_BounceIntensity: 1
414432
m_ColorTemperature: 6570

0 commit comments

Comments
 (0)