dd
This commit is contained in:
@@ -76,7 +76,7 @@ export class MonsterViewComp extends CCComp {
|
||||
// collider.on(Contact2DType.PRE_SOLVE, this.onPreSolve, this);
|
||||
collider.on(Contact2DType.POST_SOLVE, this.onPostSolve, this);
|
||||
}
|
||||
this.node.getChildByName("level").getChildByName("level").getComponent(Label).string = this.level.toString();
|
||||
// this.node.getChildByName("level").getChildByName("level").getComponent(Label).string = this.level.toString();
|
||||
|
||||
|
||||
}
|
||||
@@ -253,10 +253,10 @@ export class MonsterViewComp extends CCComp {
|
||||
load_skill(skill_name){
|
||||
// console.log("load_skill");
|
||||
let skill = ecs.getEntity<Skill>(Skill);
|
||||
let pos = v3(0,0)
|
||||
let speed =150
|
||||
let pos = v3(0,40)
|
||||
let speed =110
|
||||
let scale = this.camp
|
||||
let range = 80
|
||||
let range = 100
|
||||
skill.load(pos,speed,range,scale,this.node,skill_name,this.atk);
|
||||
}
|
||||
in_atked() {
|
||||
|
||||
Reference in New Issue
Block a user