dd
This commit is contained in:
@@ -71,7 +71,13 @@ export class Hero extends ecs.Entity {
|
||||
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
|
||||
const move = this.get(BattleMoveComp);
|
||||
move.direction = 1; // 向右移动
|
||||
move.targetX = 800; // 右边界'
|
||||
move.targetX = 0; // 右边界'
|
||||
if(HeroInfo[uuid].type==HType.remote){
|
||||
move.targetX = -100; // 右边界'
|
||||
}
|
||||
if(HeroInfo[uuid].type==HType.mage){
|
||||
move.targetX = -200; // 右边界'
|
||||
}
|
||||
}
|
||||
hero_init(uuid:number=1001,node:Node,info:any={ap:0,hp:0,lv:1,crit:0,crit_d:0,dod:0,dod_no:false,crit_no:false}) {
|
||||
var hv = node.getComponent(HeroViewComp)!;
|
||||
|
||||
Reference in New Issue
Block a user