This commit is contained in:
2024-12-30 00:07:01 +08:00
parent 17b6a68f3e
commit 2e5e415c81
71 changed files with 4317 additions and 1452 deletions

View File

@@ -256,6 +256,8 @@ export class HeroViewComp extends CCComp {
if(dir < this.dis){
this.is_atking=true
if(this.dis-dir > 80 &&this.type > 0 ) this.stop_cd = 0.1
if(dir < 65 &&this.type == 0 ) this.stop_cd = 0.1
}else{
this.is_atking=false
}
@@ -717,7 +719,7 @@ export class HeroViewComp extends CCComp {
var path = "game/skills/atked";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let pos =v3(0,30);
let pos =v3(15,30);
node.setPosition(pos)
node.parent = this.node;
// this.as.atked();
@@ -730,7 +732,7 @@ export class HeroViewComp extends CCComp {
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let pos = v3(this.node.position.x,this.node.position.y+30,this.node.position.z);
node.parent = this.node.parent;
node.parent = this.node;
node.setPosition(pos);
this.exp_add(this.dexp)
this.power_add(this.dpw)