This commit is contained in:
2025-06-20 10:26:28 +08:00
parent b7edf26cc9
commit a31710e2d9
5 changed files with 120 additions and 86 deletions

View File

@@ -4,7 +4,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu
import { smc } from "../common/SingletonModuleComp";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { GameEvent } from "../common/config/GameEvent";
import { AnimType, endType, SkillSet } from "../common/config/SkillSet";
import { AnimType, endType, RunType, SkillSet } from "../common/config/SkillSet";
import { BoxSet } from "../common/config/BoxSet";
import { HeroFac, HeroSet } from "../common/config/heroSet";
import { HeroViewComp } from "../hero/HeroViewComp";
@@ -64,6 +64,8 @@ export class SkillCom extends CCComp {
let bm=this.node.getComponent(BezierMove)
// bm.speed=700
if(this.group==BoxSet.MONSTER) bm.controlPointSide=-1
if(SkillSet[this.s_uuid].RunType==RunType.linear) bm.controlPointOffset=0
bm.moveTo(this.targetPos)
break;
case AnimType.linear:
@@ -77,14 +79,12 @@ export class SkillCom extends CCComp {
this.node.setPosition(tx,this.node.position.y-300,0)
}
}).start()
break;
case AnimType.fixed:
break;
case AnimType.fixedStart:
break;
case AnimType.fixedEnd:
this.node.setPosition(this.targetPos.x,this.targetPos.y,0)
if(this.node.getComponent(Animation)){
let anim = this.node.getComponent(Animation);
console.log("has anim",anim)