This commit is contained in:
2024-08-14 23:07:41 +08:00
parent 36419ffda4
commit cc2020086d
3 changed files with 20 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ export class MapViewComp extends CCComp {
/** 当前地图数据 */
current_map: any;
/** 转场碰撞点对象集合 */
private game_timer: Timer = new Timer(1);
private monster_refresh_rtimer: Timer = new Timer(3);
private mapLoaded() {
@@ -56,6 +56,9 @@ export class MapViewComp extends CCComp {
if (this.monster_refresh_rtimer.update(dt)) {
this.monster_refresh()
}
if (this.game_timer.update(dt)) {
smc.vm_data.game.g_time += 1;
}
// this.shuaxin(dt)
this.gold_add(dt)
}