技能开始

This commit is contained in:
panw
2025-01-03 16:43:03 +08:00
parent df8738bd84
commit 0524eee5e0
21 changed files with 1347 additions and 233 deletions

View File

@@ -0,0 +1,24 @@
import { _decorator, Component, Node, tween, Vec3 } from 'cc';
import { SkillCom } from './SkillCom';
const { ccclass, property } = _decorator;
@ccclass('NoRunCom')
export class NoRunCom extends Component {
start() {
let base =this.node.getComponent(SkillCom)
tween(this.node).to( base.in_time,
{ position: new Vec3(this.node.position.x,this.node.position.y) },
{
onComplete: (target?: object) => {
base.is_destroy=true
},
}
).start();
}
update(deltaTime: number) {
}
}