制作了多个 近战技能
This commit is contained in:
@@ -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