19 lines
312 B
TypeScript
Raw Permalink Normal View History

2023-02-22 09:50:51 +08:00
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('ActorMain')
export class ActorMain extends Component {
public static target = Object.create(null);
start () {
ActorMain.target = this.node;
}
update (deltaTime: number) {
}
}