原来是全局碰撞惹的祸

This commit is contained in:
pan@work
2024-07-31 10:48:42 +08:00
parent df8b52264e
commit 9aa9806b62
38 changed files with 1640 additions and 313 deletions

View File

@@ -39,7 +39,7 @@ export class Niu extends ecs.Entity {
var node = instantiate(prefab);
var scene = smc.map.MapView.scene;
node.parent = scene.entityLayer!.node!;
var as = node.getComponent(MonsterSpine);
// var as = node.getComponent(MonsterSpine);
node.setPosition(pos)
var mv = node.getComponent(NiuViewComp)!;