mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-27 00:58:18 +00:00
demo逻辑调整
This commit is contained in:
@@ -1,45 +1,132 @@
|
||||
{
|
||||
"bt-tree1": [
|
||||
{
|
||||
"id": "1759472794685_3awlwerqg",
|
||||
"className": "MemSelector",
|
||||
"id": "1759488688188_qejfcso50",
|
||||
"className": "Selector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759472800995_k3q8rx02h",
|
||||
"1759472799864_nait7thja",
|
||||
"1759472798713_ay9jxznr4",
|
||||
"1759472797759_gu3y8p1um"
|
||||
"1759488707759_2bmdm1fqt",
|
||||
"1759488725107_v8u160t95",
|
||||
"1759488737637_axpz9aqaz",
|
||||
"1759482034741_cf3mqaqdj"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759472797759_gu3y8p1um",
|
||||
"className": "Inverter",
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472798713_ay9jxznr4",
|
||||
"id": "1759479318405_bptb8ltcp",
|
||||
"className": "LimitTime",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
"_max": 2
|
||||
},
|
||||
"children": [
|
||||
"1758089736854_t55n54hkh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759479295671_jflit2ek8",
|
||||
"className": "LimitTime",
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
},
|
||||
"children": [
|
||||
"1758089659917_vjumiu9hy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758089659917_vjumiu9hy",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_name": "walk",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472799864_nait7thja",
|
||||
"className": "LimitTicks",
|
||||
"id": "1758089736854_t55n54hkh",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
"_name": "run",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472800995_k3q8rx02h",
|
||||
"className": "Repeat",
|
||||
"id": "1758089757615_dp9tw9ka1",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
"_name": "jump",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759478407706_w30m4btux",
|
||||
"className": "BTAnimation",
|
||||
"parameters": {
|
||||
"_name": "idle",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759481172259_xou25wj2n",
|
||||
"className": "BTConditionRandom",
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759481282875_5orqavi5y",
|
||||
"className": "BTConditionRandom",
|
||||
"parameters": {
|
||||
"_value": 0.4
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759481307863_ja6q4q9bz",
|
||||
"className": "BTConditionRandom",
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759482034741_cf3mqaqdj",
|
||||
"className": "LimitTime",
|
||||
"parameters": {
|
||||
"_max": 3
|
||||
},
|
||||
"children": [
|
||||
"1759478407706_w30m4btux"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759488707759_2bmdm1fqt",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481172259_xou25wj2n",
|
||||
"1759479295671_jflit2ek8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759488725107_v8u160t95",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481282875_5orqavi5y",
|
||||
"1759479318405_bptb8ltcp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759488737637_axpz9aqaz",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481307863_ja6q4q9bz",
|
||||
"1758089757615_dp9tw9ka1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"bt-tree2": [
|
||||
@@ -48,122 +135,14 @@
|
||||
"className": "MemSequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005578560_0b1kuefo0",
|
||||
"node_1757926547913_xilg11ei7",
|
||||
"1757931183149_eeuq44vs0"
|
||||
"1758090634327_mf36nwkdt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node_1757926547913_xilg11ei7",
|
||||
"className": "MemSelector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"node_1757926550855_1hqcmi43w",
|
||||
"node_1757926555912_18vbde5fp",
|
||||
"1757930584200_cf9rez1qg",
|
||||
"1757931171553_a3afal936"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node_1757926550855_1hqcmi43w",
|
||||
"className": "WaitTicks",
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "node_1757926555912_18vbde5fp",
|
||||
"className": "WaitTime",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757930584200_cf9rez1qg",
|
||||
"className": "Inverter",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1757930606484_dbsf9bsu2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1757930606484_dbsf9bsu2",
|
||||
"className": "WaitTicks",
|
||||
"parameters": {
|
||||
"_max": 0
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757931171553_a3afal936",
|
||||
"className": "WaitTicks",
|
||||
"parameters": {
|
||||
"_max": 0
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757931183149_eeuq44vs0",
|
||||
"className": "LimitTicks",
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005570308_u6yo43u3b",
|
||||
"className": "MemSelector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005574101_v4xhs2jo8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005572265_dl9lxnrki",
|
||||
"className": "MemSequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005575213_obgfw5q7p"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005574101_v4xhs2jo8",
|
||||
"id": "1758090634327_mf36nwkdt",
|
||||
"className": "Selector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005576340_c8xf5bdhp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005575213_obgfw5q7p",
|
||||
"className": "RandomSelector",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005577367_tw24xyxop"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005576340_c8xf5bdhp",
|
||||
"className": "Sequence",
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005577367_tw24xyxop",
|
||||
"className": "Parallel",
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005578560_0b1kuefo0",
|
||||
"className": "ParallelAnySuccess",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005570308_u6yo43u3b",
|
||||
"1758005572265_dl9lxnrki"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
9
bt-demo/assets/resources/prefab.meta
Normal file
9
bt-demo/assets/resources/prefab.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "6b9b2da1-08c2-4c40-ab35-e7cb5bb30872",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
147
bt-demo/assets/resources/prefab/spineboy.prefab
Normal file
147
bt-demo/assets/resources/prefab/spineboy.prefab
Normal file
@@ -0,0 +1,147 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "spineboy",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "spineboy",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": -1000
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.3,
|
||||
"y": 0.3,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 419.8399963378906,
|
||||
"height": 686.0800170898438
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.45412539378136013,
|
||||
"y": 0.011660447470739235
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "dfVeZdqm9E15k7OBD615QP"
|
||||
},
|
||||
{
|
||||
"__type__": "sp.Skeleton",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_skeletonData": {
|
||||
"__uuid__": "39a7d8cd-533a-479a-b909-9575bf720338",
|
||||
"__expectedType__": "sp.SkeletonData"
|
||||
},
|
||||
"defaultSkin": "default",
|
||||
"defaultAnimation": "jump",
|
||||
"_premultipliedAlpha": true,
|
||||
"_timeScale": 1,
|
||||
"_preCacheMode": 0,
|
||||
"_cacheMode": 0,
|
||||
"_sockets": [],
|
||||
"_useTint": false,
|
||||
"_debugMesh": false,
|
||||
"_debugBones": false,
|
||||
"_debugSlots": false,
|
||||
"_enableBatch": false,
|
||||
"loop": true,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "deHPJ9jpdJZq/2PP1E2haI"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "fcg4LyhU9MpITaQy7lW8Ru",
|
||||
"instance": null,
|
||||
"targetOverrides": null
|
||||
}
|
||||
]
|
||||
13
bt-demo/assets/resources/prefab/spineboy.prefab.meta
Normal file
13
bt-demo/assets/resources/prefab/spineboy.prefab.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.50",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "610db270-416d-42a9-a228-67b0fe1beee4",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "spineboy"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user