21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('UiHeroComp')
|
|
export class UiHeroComp extends Component {
|
|
h_uuid:number=0
|
|
start() {
|
|
console.log("UiHeroComp start",this.h_uuid)
|
|
console.log(this)
|
|
}
|
|
to_destroy(){
|
|
console.log("UiHeroComp to_destroy",this.h_uuid)
|
|
this.node.destroy()
|
|
}
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|
|
|