mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
添加demo
This commit is contained in:
20
bt-demo/assets/script/GameEntry.ts
Normal file
20
bt-demo/assets/script/GameEntry.ts
Normal 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 {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user