71 lines
793 B
TypeScript
Raw Normal View History

2023-02-22 09:50:51 +08:00
import { _decorator, Component, Node } from 'cc';
import { ActorBase } from '../../core/actor/actor-base';
import { Brain } from '../../core/ai/brain';
const { ccclass, property } = _decorator;
@ccclass('ActorPiranha')
export class ActorPiranha extends ActorBase {
_brain:Brain;
start() {
this.init('actor-piranha');
this._brain = new Brain(this._data.brain, this);
}
update(deltaTime: number) {
}
//#region condition
noFoundPlayer() {
}
foundPlayer() {
}
nearPlayer() {
}
canEatPlayer() {
}
fleePlayer() {
}
feedPlayer() {
}
//#endregion
idle() {
}
move() {
}
jump() {
}
crossRoad() {
}
forcePrepareJump() {
}
}