假期修改

This commit is contained in:
2024-09-18 12:45:05 +08:00
parent 2095393757
commit cd0dc9fe7c
79 changed files with 7383 additions and 1449 deletions

View File

@@ -2,7 +2,7 @@
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "430ee378-c69f-409a-b098-d3daec37d90b",
"uuid": "80aaeefe-a9d9-42da-8086-62a77b582046",
"files": [],
"subMetas": {},
"userData": {}

View File

@@ -2,7 +2,7 @@
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "31174503-d934-4bd4-bd68-01aaa5534e81",
"uuid": "b8d6919d-0a2d-41eb-8c10-5ea684508f48",
"files": [],
"subMetas": {},
"userData": {}

View File

@@ -2,7 +2,7 @@
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "917ea8ef-8f1b-498c-8bfe-654cd28a86a5",
"uuid": "d87fc680-dacd-4c20-9d19-08e941660d54",
"files": [],
"subMetas": {},
"userData": {}

View File

@@ -54,7 +54,7 @@ export class Skill extends ecs.Entity {
angle=0
}
sv.angle = angle;
console.log(smc.skills[uuid].name+"angle:"+angle)
// console.log(smc.skills[uuid].name+"angle:"+angle)
sv.s_uuid = uuid;
sv.atk = atk;
node.setScale(v3(node.scale.x*scale,node.scale.y))

View File

@@ -75,7 +75,7 @@ export class SkillCom extends CCComp {
}
// console.log("skill run_type",this.run_type)
if(this.run_type == 1){ //贝塞尔曲线
console.log("skill bezierTo",this.t_pos)
// console.log("skill bezierTo",this.t_pos)
let s_pos = v3(this.node.position.x,this.node.position.y)
let c_pos = v3((this.t_pos.x+this.node.position.x)/2,this.node.position.y+100)
let e_pos = v3(this.node.position.x+this.t_pos.x,this.node.position.y+this.t_pos.y)

View File

@@ -1,4 +1,4 @@
import { _decorator, Component, Node, sp ,Animation, AnimationState} from 'cc';
import { _decorator, Component, Node, sp ,Animation, AnimationState, animation, AnimationClip} from 'cc';
import { Timer } from '../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer';
const { ccclass, property ,} = _decorator;
@@ -6,17 +6,18 @@ const { ccclass, property ,} = _decorator;
export class anonce extends Component {
timer:Timer=new Timer(0.5);
anm_clip: AnimationClip = null!;
start() {
}
protected onLoad(): void {
this.anm_clip = this.node.getChildByName("skill").getComponent(Animation).clips[0];
}
update(deltaTime: number) {
if(this.node.active){
if(!this.node.getChildByName("skill").getComponent(Animation).getState("heathed").isPlaying){
if(!this.node.getChildByName("skill").getComponent(Animation).getState(this.anm_clip.name).isPlaying){
this.node.getChildByName("skill").getComponent(Animation).play();
}
if (this.timer.update(deltaTime)) {