技能内存优化
This commit is contained in:
@@ -175,8 +175,8 @@ export class BuffComp extends Component {
|
||||
node.parent = this.node.parent;
|
||||
node.setPosition(pos);
|
||||
}
|
||||
in_atked() {
|
||||
var path = "game/skills/atked";
|
||||
in_atked(anm:string="atked") {
|
||||
var path = "game/skills/"+anm;
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
var node = instantiate(prefab);
|
||||
let pos =v3(15,30);
|
||||
|
||||
Reference in New Issue
Block a user