技能layer改变,位置信息修改
This commit is contained in:
@@ -4,6 +4,7 @@ import { oops } from 'db://oops-framework/core/Oops';
|
||||
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
|
||||
import { Tooltip } from '../skills/Tooltip';
|
||||
import { timedCom } from '../skills/timedCom';
|
||||
import { smc } from '../common/SingletonModuleComp';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('BuffComp')
|
||||
@@ -40,6 +41,7 @@ export class BuffComp extends Component {
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
if(smc.mission.pause) return
|
||||
if(this.ap_cd > 0 ) this.ap_cd -= deltaTime;
|
||||
if(this.ap_cd <= 0 && this.node.getChildByName("top").getChildByName("buff").getChildByName("ap").active){
|
||||
this.node.getChildByName("top").getChildByName("buff").getChildByName("ap").active = false;
|
||||
|
||||
Reference in New Issue
Block a user