继续
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -39,8 +39,27 @@ export class SingletonModuleComp extends ecs.Comp {
|
|||||||
mission_data:{
|
mission_data:{
|
||||||
|
|
||||||
},
|
},
|
||||||
hero_info:{
|
hero:{
|
||||||
hp:0,
|
hp:0,
|
||||||
|
hp_max:0,
|
||||||
|
cd:3,
|
||||||
|
t_ap:9999,
|
||||||
|
ap:9999,
|
||||||
|
def:9999,
|
||||||
|
crit:9999,
|
||||||
|
crit_d:99,
|
||||||
|
dod:99,
|
||||||
|
dod_no:false,
|
||||||
|
crit_no:false,
|
||||||
|
equip_ap:9999,
|
||||||
|
buff_ap:9999,
|
||||||
|
debuff_ap:9999,
|
||||||
|
},
|
||||||
|
friend:{
|
||||||
|
hp:0,
|
||||||
|
hp_max:0,
|
||||||
|
cd:3,
|
||||||
|
t_ap:0,
|
||||||
ap:0,
|
ap:0,
|
||||||
def:0,
|
def:0,
|
||||||
crit:0,
|
crit:0,
|
||||||
@@ -52,21 +71,11 @@ export class SingletonModuleComp extends ecs.Comp {
|
|||||||
buff_ap:0,
|
buff_ap:0,
|
||||||
debuff_ap:0,
|
debuff_ap:0,
|
||||||
},
|
},
|
||||||
friend_info:{
|
boss:{
|
||||||
hp:0,
|
|
||||||
ap:0,
|
|
||||||
def:0,
|
|
||||||
crit:0,
|
|
||||||
crit_d:0,
|
|
||||||
dod:0,
|
|
||||||
dod_no:false,
|
|
||||||
crit_no:false,
|
|
||||||
equip_ap:0,
|
|
||||||
buff_ap:0,
|
|
||||||
debuff_ap:0,
|
|
||||||
},
|
|
||||||
boss_info:{
|
|
||||||
hp:0,
|
hp:0,
|
||||||
|
hp_max:0,
|
||||||
|
cd:3,
|
||||||
|
t_ap:0,
|
||||||
ap:0,
|
ap:0,
|
||||||
def:0,
|
def:0,
|
||||||
crit:0,
|
crit:0,
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ export class BarCompComp extends CCComp {
|
|||||||
this.on(GameEvent.FightReady,this.readay,this)
|
this.on(GameEvent.FightReady,this.readay,this)
|
||||||
}
|
}
|
||||||
start() {
|
start() {
|
||||||
this.hero_bar = this.node.getChildByName("bar");
|
// this.hero_bar = this.node.getChildByName("bar");
|
||||||
this.friend_bar = this.node.getChildByName("fbar");
|
// this.friend_bar = this.node.getChildByName("fbar");
|
||||||
this.boss_bar = this.node.getChildByName("bar");
|
// this.boss_bar = this.node.getChildByName("bar");
|
||||||
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
|
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
|
||||||
// this.on(ModuleEvent.Cmd, this.onHandler, this);
|
// this.on(ModuleEvent.Cmd, this.onHandler, this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user