技能layer改变,位置信息修改
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user