攻击距离设定
This commit is contained in:
@@ -41,7 +41,6 @@ export class Hero extends ecs.Entity {
|
||||
|
||||
/** 加载角色 */
|
||||
load(pos: Vec3 = Vec3.ZERO,scale:number = -1,uuid:number=1001,layer:Node=smc.map.MapView.scene.entityLayer!.node!) {
|
||||
console.log("加载角色",uuid,smc.heros[uuid]);
|
||||
|
||||
var path = "game/hero/"+smc.heros[uuid].path;
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
@@ -85,6 +84,7 @@ export class Hero extends ecs.Entity {
|
||||
mv.level = smc.heros[uuid].level;
|
||||
mv.atk = smc.heros[uuid].atk;
|
||||
mv.atk_cd = smc.heros[uuid].atk_cd;
|
||||
mv.atk_dis = smc.heros[uuid].atk_dis;
|
||||
mv.power = smc.heros[uuid].power;
|
||||
mv.type = smc.heros[uuid].type;
|
||||
mv.skill_uuid = 9001;
|
||||
|
||||
Reference in New Issue
Block a user