This commit is contained in:
Marco 2025-06-18 18:09:30 +02:00
commit 341f76d885
17 changed files with 156 additions and 55 deletions

View file

@ -124,10 +124,10 @@ public partial class PoolingManager : Node
private IBullet InstantiateBullet(BulletResource bulletData)
{
var bullet = bulletData.BulletScene.Instantiate<Bullet>();
var bullet = bulletData.BulletScene.Instantiate<Node>();
this.AddChild(bullet);
//this.CreateChild<Bullet>(bulletData.BulletScene);
return bullet;
return bullet as IBullet;
}
}