mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 06:35:54 +00:00
Capacitors and parallax
This commit is contained in:
parent
c5ed30f458
commit
3670da9719
29 changed files with 705 additions and 57 deletions
|
|
@ -16,7 +16,7 @@ public partial class BulletEmitter : Node2D, IActivable
|
|||
|
||||
[Export] public float Spread { get; set; } = 0f;
|
||||
|
||||
[Export] public float Rotation { get; set; } = 0f;
|
||||
[Export] public float EmissionRotation { get; set; } = 0f;
|
||||
|
||||
private BulletSpawner _bulletSpawner;
|
||||
|
||||
|
|
@ -32,12 +32,12 @@ public partial class BulletEmitter : Node2D, IActivable
|
|||
case ActivationType.Toggle:
|
||||
break;
|
||||
case ActivationType.Enable:
|
||||
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, Rotation));
|
||||
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, EmissionRotation));
|
||||
break;
|
||||
case ActivationType.Disable:
|
||||
break;
|
||||
case ActivationType.Use:
|
||||
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, Rotation));
|
||||
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, EmissionRotation));
|
||||
break;
|
||||
case ActivationType.Destroy:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue