制作了多个 近战技能
This commit is contained in:
@@ -63,7 +63,7 @@ export class HeroMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpd
|
||||
|
||||
// 英雄阵营特殊逻辑:根据职业区分行为
|
||||
const hasEnemies = this.checkEnemiesExist(e);
|
||||
const isWarrior = model.type === HType.warrior;
|
||||
const isWarrior = model.type === HType.warrior||model.type===HType.assassin;
|
||||
|
||||
// 战士职业:有敌人就向敌人前进
|
||||
if (isWarrior && hasEnemies) {
|
||||
|
||||
@@ -218,7 +218,7 @@ export class HeroViewComp extends CCComp {
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
var node = instantiate(prefab);
|
||||
node.setScale(node.scale.x * scale, node.scale.y);
|
||||
node.setPosition(this.node.position.x, this.node.position.y+8, this.node.position.z);
|
||||
node.setPosition(this.node.position.x, this.node.position.y+50, this.node.position.z);
|
||||
node.parent = this.node.parent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user