demo逻辑调整

This commit is contained in:
gongxh
2025-10-03 18:56:49 +08:00
parent 249022a300
commit b20cf3fd41
21 changed files with 5608 additions and 706 deletions

View File

@@ -3,98 +3,298 @@
"description": "",
"nodes": [
{
"id": "1759472794685_3awlwerqg",
"className": "MemSelector",
"name": "记忆选择节点",
"id": "1759488688188_qejfcso50",
"className": "Selector",
"name": "选择节点",
"position": {
"x": -60,
"y": -200
},
"parameters": {},
"children": [
"1759472800995_k3q8rx02h",
"1759472799864_nait7thja",
"1759472798713_ay9jxznr4",
"1759472797759_gu3y8p1um"
]
"1759488707759_2bmdm1fqt",
"1759488725107_v8u160t95",
"1759488737637_axpz9aqaz",
"1759482034741_cf3mqaqdj"
],
"alias": "根节点"
},
{
"id": "1759472797759_gu3y8p1um",
"className": "Inverter",
"name": "反转器",
"position": {
"x": 160,
"y": -80
},
"parameters": {},
"children": []
},
{
"id": "1759472798713_ay9jxznr4",
"id": "1759479318405_bptb8ltcp",
"className": "LimitTime",
"name": "时间限制器",
"position": {
"x": 20,
"y": -80
"x": -40,
"y": 40
},
"parameters": {
"_max": 1
"_max": 2
},
"children": [
"1758089736854_t55n54hkh"
]
},
{
"id": "1759479295671_jflit2ek8",
"className": "LimitTime",
"name": "时间限制器",
"position": {
"x": -360,
"y": 40
},
"parameters": {
"_max": 2
},
"children": [
"1758089659917_vjumiu9hy"
]
},
{
"id": "1758089659917_vjumiu9hy",
"className": "BTAnimation",
"name": "播放动画",
"position": {
"x": -360,
"y": 160
},
"parameters": {
"_name": "walk",
"_loop": true
},
"children": []
},
{
"id": "1759472799864_nait7thja",
"className": "LimitTicks",
"name": "次数限制器",
"id": "1758089736854_t55n54hkh",
"className": "BTAnimation",
"name": "播放动画",
"position": {
"x": -40,
"y": 160
},
"parameters": {
"_name": "run",
"_loop": true
},
"children": []
},
{
"id": "1758089757615_dp9tw9ka1",
"className": "BTAnimation",
"name": "播放动画",
"position": {
"x": 260,
"y": 40
},
"parameters": {
"_name": "jump",
"_loop": false
},
"children": []
},
{
"id": "1759478407706_w30m4btux",
"className": "BTAnimation",
"name": "播放动画",
"position": {
"x": 420,
"y": 40
},
"parameters": {
"_name": "idle",
"_loop": true
},
"children": []
},
{
"id": "1759481172259_xou25wj2n",
"className": "BTConditionRandom",
"name": "随机条件节点",
"position": {
"x": -520,
"y": 40
},
"parameters": {
"_value": 0.3
},
"children": []
},
{
"id": "1759481282875_5orqavi5y",
"className": "BTConditionRandom",
"name": "随机条件节点",
"position": {
"x": -200,
"y": 40
},
"parameters": {
"_value": 0.4
},
"children": []
},
{
"id": "1759481307863_ja6q4q9bz",
"className": "BTConditionRandom",
"name": "随机条件节点",
"position": {
"x": 120,
"y": 40
},
"parameters": {
"_value": 0.3
},
"children": []
},
{
"id": "1759482034741_cf3mqaqdj",
"className": "LimitTime",
"name": "时间限制器",
"position": {
"x": 420,
"y": -80
},
"parameters": {
"_max": 3
},
"children": [
"1759478407706_w30m4btux"
],
"alias": "待机动画"
},
{
"id": "1759488707759_2bmdm1fqt",
"className": "Sequence",
"name": "顺序节点",
"position": {
"x": -440,
"y": -80
},
"parameters": {},
"children": [
"1759481172259_xou25wj2n",
"1759479295671_jflit2ek8"
],
"alias": "行走动画分支"
},
{
"id": "1759488725107_v8u160t95",
"className": "Sequence",
"name": "顺序节点",
"position": {
"x": -120,
"y": -80
},
"parameters": {
"_max": 1
},
"children": []
"parameters": {},
"children": [
"1759481282875_5orqavi5y",
"1759479318405_bptb8ltcp"
],
"alias": "奔跑动画分支"
},
{
"id": "1759472800995_k3q8rx02h",
"className": "Repeat",
"name": "重复节点",
"id": "1759488737637_axpz9aqaz",
"className": "Sequence",
"name": "顺序节点",
"position": {
"x": -260,
"x": 180,
"y": -80
},
"parameters": {
"_max": 1
},
"children": []
"parameters": {},
"children": [
"1759481307863_ja6q4q9bz",
"1758089757615_dp9tw9ka1"
],
"alias": "跳跃动画分支"
}
],
"connections": [
{
"id": "conn_1759472802506_ojduz0zog",
"sourceNodeId": "1759472794685_3awlwerqg",
"targetNodeId": "1759472800995_k3q8rx02h",
"id": "conn_1759479306749_wnwlz1638",
"sourceNodeId": "1759479295671_jflit2ek8",
"targetNodeId": "1758089659917_vjumiu9hy",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759472803849_dk7zwd0xt",
"sourceNodeId": "1759472794685_3awlwerqg",
"targetNodeId": "1759472799864_nait7thja",
"id": "conn_1759479325803_ln42r7198",
"sourceNodeId": "1759479318405_bptb8ltcp",
"targetNodeId": "1758089736854_t55n54hkh",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759472807533_unxo9p2b0",
"sourceNodeId": "1759472794685_3awlwerqg",
"targetNodeId": "1759472798713_ay9jxznr4",
"id": "conn_1759482041141_ok8gnqp0o",
"sourceNodeId": "1759482034741_cf3mqaqdj",
"targetNodeId": "1759478407706_w30m4btux",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759472809481_l9rcrno3b",
"sourceNodeId": "1759472794685_3awlwerqg",
"targetNodeId": "1759472797759_gu3y8p1um",
"id": "conn_1759488698126_dou7vxvo0",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759482034741_cf3mqaqdj",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488712210_gn0eom3zv",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759488707759_2bmdm1fqt",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488719553_mag45k9dx",
"sourceNodeId": "1759488707759_2bmdm1fqt",
"targetNodeId": "1759481172259_xou25wj2n",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488720799_ksfwij12z",
"sourceNodeId": "1759488707759_2bmdm1fqt",
"targetNodeId": "1759479295671_jflit2ek8",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488728262_shaymep9m",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759488725107_v8u160t95",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488732106_yg23eiw3l",
"sourceNodeId": "1759488725107_v8u160t95",
"targetNodeId": "1759481282875_5orqavi5y",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488733833_08kf67zp1",
"sourceNodeId": "1759488725107_v8u160t95",
"targetNodeId": "1759479318405_bptb8ltcp",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488741448_2in7yz3v7",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759488737637_axpz9aqaz",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488742689_15z7fchvc",
"sourceNodeId": "1759488737637_axpz9aqaz",
"targetNodeId": "1759481307863_ja6q4q9bz",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488745870_5rllaj2oe",
"sourceNodeId": "1759488737637_axpz9aqaz",
"targetNodeId": "1758089757615_dp9tw9ka1",
"sourcePointType": "child",
"targetPointType": "parent"
}

View File

@@ -8,294 +8,30 @@
"name": "记忆顺序节点",
"position": {
"x": -60,
"y": -200
"y": -280
},
"parameters": {},
"children": [
"1758005578560_0b1kuefo0",
"node_1757926547913_xilg11ei7",
"1757931183149_eeuq44vs0"
"1758090634327_mf36nwkdt"
]
},
{
"id": "node_1757926547913_xilg11ei7",
"className": "MemSelector",
"name": "记忆选择节点",
"id": "1758090634327_mf36nwkdt",
"className": "Selector",
"name": "选择节点",
"position": {
"x": 20,
"y": -80
},
"parameters": {},
"children": [
"node_1757926550855_1hqcmi43w",
"node_1757926555912_18vbde5fp",
"1757930584200_cf9rez1qg",
"1757931171553_a3afal936"
]
},
{
"id": "node_1757926550855_1hqcmi43w",
"className": "WaitTicks",
"name": "等待次数",
"position": {
"x": -220,
"y": 40
},
"parameters": {
"_max": 2
},
"children": []
},
{
"id": "node_1757926555912_18vbde5fp",
"className": "WaitTime",
"name": "等待时间",
"position": {
"x": -60,
"y": 40
},
"parameters": {
"_max": 1
},
"children": []
},
{
"id": "1757930584200_cf9rez1qg",
"className": "Inverter",
"name": "反转器",
"position": {
"x": 100,
"y": 40
},
"parameters": {},
"children": [
"1757930606484_dbsf9bsu2"
]
},
{
"id": "1757930606484_dbsf9bsu2",
"className": "WaitTicks",
"name": "等待次数",
"position": {
"x": 100,
"y": 160
},
"parameters": {
"_max": 0
},
"children": []
},
{
"id": "1757931171553_a3afal936",
"className": "WaitTicks",
"name": "等待次数",
"position": {
"x": 260,
"y": 40
},
"parameters": {
"_max": 0
},
"children": []
},
{
"id": "1757931183149_eeuq44vs0",
"className": "LimitTicks",
"name": "次数限制器",
"position": {
"x": 420,
"y": -80
},
"parameters": {
"_max": 1
},
"children": []
},
{
"id": "1758005570308_u6yo43u3b",
"className": "MemSelector",
"name": "记忆选择节点",
"position": {
"x": -540,
"y": 40
},
"parameters": {},
"children": [
"1758005574101_v4xhs2jo8"
]
},
{
"id": "1758005572265_dl9lxnrki",
"className": "MemSequence",
"name": "记忆顺序节点",
"position": {
"x": -380,
"y": 40
},
"parameters": {},
"children": [
"1758005575213_obgfw5q7p"
]
},
{
"id": "1758005574101_v4xhs2jo8",
"className": "Selector",
"name": "选择节点",
"position": {
"x": -540,
"y": 160
},
"parameters": {},
"children": [
"1758005576340_c8xf5bdhp"
]
},
{
"id": "1758005575213_obgfw5q7p",
"className": "RandomSelector",
"name": "随机选择节点",
"position": {
"x": -380,
"y": 160
},
"parameters": {},
"children": [
"1758005577367_tw24xyxop"
]
},
{
"id": "1758005576340_c8xf5bdhp",
"className": "Sequence",
"name": "顺序节点",
"position": {
"x": -540,
"y": 280
},
"parameters": {},
"children": []
},
{
"id": "1758005577367_tw24xyxop",
"className": "Parallel",
"name": "并行节点",
"position": {
"x": -380,
"y": 280
},
"parameters": {},
"children": []
},
{
"id": "1758005578560_0b1kuefo0",
"className": "ParallelAnySuccess",
"name": "并行任意成功",
"position": {
"x": -460,
"y": -80
},
"parameters": {},
"children": [
"1758005570308_u6yo43u3b",
"1758005572265_dl9lxnrki"
]
}
],
"connections": [
{
"id": "conn_1757926557710_7asuzelad",
"sourceNodeId": "node_1757926547913_xilg11ei7",
"targetNodeId": "node_1757926555912_18vbde5fp",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1757926560138_ragkonnfy",
"sourceNodeId": "node_1757926547913_xilg11ei7",
"targetNodeId": "node_1757926550855_1hqcmi43w",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1757930585861_b5oi5rm01",
"sourceNodeId": "node_1757926547913_xilg11ei7",
"targetNodeId": "1757930584200_cf9rez1qg",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1757930591546_aul6he8br",
"id": "conn_1758090635620_zajj5r8g0",
"sourceNodeId": "1757930589538_qisfksbwz",
"targetNodeId": "node_1757926547913_xilg11ei7",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1757931173864_bvoj26wca",
"sourceNodeId": "node_1757926547913_xilg11ei7",
"targetNodeId": "1757931171553_a3afal936",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1757931198693_i0xwbcybx",
"sourceNodeId": "1757930589538_qisfksbwz",
"targetNodeId": "1757931183149_eeuq44vs0",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1757931631231_ecs9ql7x6",
"sourceNodeId": "1757930584200_cf9rez1qg",
"targetNodeId": "1757930606484_dbsf9bsu2",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758005608025_lk647mty7",
"sourceNodeId": "1758005570308_u6yo43u3b",
"targetNodeId": "1758005574101_v4xhs2jo8",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758005609490_i9jyzji9o",
"sourceNodeId": "1758005572265_dl9lxnrki",
"targetNodeId": "1758005575213_obgfw5q7p",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758005610949_y0443s3om",
"sourceNodeId": "1758005575213_obgfw5q7p",
"targetNodeId": "1758005577367_tw24xyxop",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758005614225_q84l7ry4u",
"sourceNodeId": "1758005578560_0b1kuefo0",
"targetNodeId": "1758005570308_u6yo43u3b",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758005615813_q663l1nnl",
"sourceNodeId": "1758005578560_0b1kuefo0",
"targetNodeId": "1758005572265_dl9lxnrki",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758005618014_6uj500l16",
"sourceNodeId": "1758005574101_v4xhs2jo8",
"targetNodeId": "1758005576340_c8xf5bdhp",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1758009576474_gtfkqutb1",
"sourceNodeId": "1757930589538_qisfksbwz",
"targetNodeId": "1758005578560_0b1kuefo0",
"targetNodeId": "1758090634327_mf36nwkdt",
"sourcePointType": "child",
"targetPointType": "parent"
}