mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
working spder bomb
This commit is contained in:
parent
6125565d8c
commit
f1f40a91dd
17 changed files with 400 additions and 105 deletions
|
|
@ -28,6 +28,8 @@ public partial class Bullet : Area2D
|
|||
|
||||
private GameManager _gameManager;
|
||||
|
||||
[Signal] public delegate void OnDestroyEventHandler();
|
||||
|
||||
public void Initialize(BulletInfo bulletInfo, GameManager gameManager)
|
||||
{
|
||||
_bulletInfo = bulletInfo;
|
||||
|
|
@ -234,11 +236,11 @@ public partial class Bullet : Area2D
|
|||
{
|
||||
if (_bulletInfo?.DestructionParticlesScene != null)
|
||||
{
|
||||
var particle = this.CreateSibling<AutodeleteParticle>(_bulletInfo.DestructionParticlesScene);
|
||||
this.CreateSibling<Node2D>(_bulletInfo.DestructionParticlesScene);
|
||||
|
||||
particle.Init();
|
||||
//particle.Init();
|
||||
}
|
||||
|
||||
EmitSignal(SignalName.OnDestroy);
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue