技能内存优化

This commit is contained in:
2025-08-08 22:20:26 +08:00
parent 570812de88
commit bf241345bf
13 changed files with 3224 additions and 2930 deletions

View File

@@ -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);