技能动画 继续完善

This commit is contained in:
2025-01-10 16:50:18 +08:00
parent 58fa6e0aa3
commit 56832c41fe
52 changed files with 786 additions and 695 deletions

View File

@@ -0,0 +1,22 @@
import { _decorator, Component, Node } from 'cc';
import { SkillCom } from './SkillCom';
import { smc } from '../common/SingletonModuleComp';
const { ccclass, property } = _decorator;
@ccclass('EndLineCom')
export class EndLineCom extends Component {
base:SkillCom = null
start() {
this.base =this.node.getComponent(SkillCom)
}
update(deltaTime: number) {
if(smc.mission.pause) return
if(this.node.position.x > 500 || this.node.position.x<-500){
this.base.is_destroy = true
}
}
}