技能layer改变,位置信息修改

This commit is contained in:
2025-01-07 07:54:29 +08:00
parent a9a7f076f4
commit ca5adce589
16 changed files with 75 additions and 536 deletions

View File

@@ -1,6 +1,7 @@
import { _decorator, Component, Node } from 'cc';
import { timedCom } from './timedCom';
import { HeroViewComp } from '../hero/HeroViewComp';
import { smc } from '../common/SingletonModuleComp';
const { ccclass, property } = _decorator;
@ccclass('debuff')
@@ -16,6 +17,7 @@ export class debuff extends Component {
}
update(deltaTime: number) {
if(smc.mission.pause) return
this.cd += deltaTime
if(this.cd >=1){
// this.node.setPosition(v3(-1000,0,0))