技能清理

This commit is contained in:
2025-06-18 16:04:57 +08:00
parent d6457be563
commit 5083910c95
20 changed files with 209 additions and 720 deletions

View File

@@ -1,4 +1,4 @@
import { _decorator, resources, Sprite, SpriteAtlas ,Node, ProgressBar} from "cc";
import { _decorator, resources, Sprite, SpriteAtlas ,Node, ProgressBar, tween, v3} from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { GameEvent } from "../common/config/GameEvent";
@@ -101,16 +101,25 @@ export class EquipSkillComp extends CCComp {
do_skill1(){
console.log("do_skill1")
this.skill1.cd_time=0
tween(this.boxs.getChildByName("skill1")).to(0.1, {scale:v3(1.2,1.2,1)},{onComplete:()=>{
tween(this.boxs.getChildByName("skill1")).to(0.2, {scale:v3(1,1,1)}).start()
}}).start()
this.do_skill(this.skill1.uuid)
}
do_skill2(){
console.log("do_skill2")
this.skill2.cd_time=0
tween(this.boxs.getChildByName("skill2")).to(0.1, {scale:v3(1.2,1.2,1)},{onComplete:()=>{
tween(this.boxs.getChildByName("skill2")).to(0.2, {scale:v3(1,1,1)}).start()
}}).start()
this.do_skill(this.skill2.uuid)
}
do_skill3(){
console.log("do_skill3")
this.skill3.cd_time=0
tween(this.boxs.getChildByName("skill3")).to(0.1, {scale:v3(1.2,1.2,1)},{onComplete:()=>{
tween(this.boxs.getChildByName("skill3")).to(0.2, {scale:v3(1,1,1)}).start()
}}).start()
this.do_skill(this.skill3.uuid)
}