This commit is contained in:
2024-09-23 08:14:39 +08:00
parent 96c96da552
commit 618a6e3f7b
65 changed files with 38950 additions and 8530 deletions

View File

@@ -29,8 +29,6 @@ export class MapViewComp extends CCComp {
start() {
this.scene = this.getComponent(MapViewScene);
this.load_data()
// this.load_role()
}
load_data(){
@@ -38,20 +36,10 @@ export class MapViewComp extends CCComp {
// console.log("heros",heros)
}
protected update(dt: number): void {
// if (this.game_timer.update(dt)) {
// smc.vm_data.game.g_time += 1;
// }
// this.shuaxin(dt)
// this.gold_add(dt)
}
// 刷新怪物
gold_add(dt: number) {
smc.vm_data.gold.time += dt;
if (smc.vm_data.gold.time >= smc.vm_data.gold.cd) {
smc.vm_data.gold.min += 1;
smc.vm_data.gold.time = 0;
}
}
}