添加demo

This commit is contained in:
gongxh
2025-09-17 10:25:13 +08:00
parent d7fc1e49ae
commit b582a5d1da
29 changed files with 2125 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
import { _decorator, Component, Node } from 'cc';
import * as BT from "kunpocc-behaviortree";
const { ccclass, property, menu } = _decorator;
@ccclass("GameEntry")
@menu("kunpo/GameEntry")
export class GameEntry extends Component {
@property(Node)
private stage: Node = null;
@property(Node)
private touchNode: Node = null;
start(): void {
BT
}
protected update(dt: number): void {
}
}