添加技能动画
This commit is contained in:
@@ -55,6 +55,7 @@ export class MapViewComp extends CCComp {
|
||||
}
|
||||
protected update(dt: number): void {
|
||||
if (this.monster_refresh_rtimer.update(dt)) {
|
||||
// 刷新怪物定时器
|
||||
this.monster_refresh()
|
||||
}
|
||||
if (this.game_timer.update(dt)) {
|
||||
@@ -63,11 +64,11 @@ export class MapViewComp extends CCComp {
|
||||
// this.shuaxin(dt)
|
||||
this.gold_add(dt)
|
||||
}
|
||||
// 刷新怪物
|
||||
monster_refresh(){
|
||||
if(smc.monsters.length > 0 ){
|
||||
this.addMonster(smc.monsters[0].uuid)
|
||||
}
|
||||
|
||||
}
|
||||
gold_add(dt: number) {
|
||||
smc.vm_data.gold.time += dt;
|
||||
@@ -102,7 +103,4 @@ export class MapViewComp extends CCComp {
|
||||
smc.monsters.splice(0,1)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user