英雄上阵选择 基本完成
This commit is contained in:
20
assets/script/game/hero/UiHeroComp.ts
Normal file
20
assets/script/game/hero/UiHeroComp.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user