cucumber
This commit is contained in:
parent
2156c6a166
commit
bb7c0f63c4
12 changed files with 482 additions and 28 deletions
|
|
@ -25,7 +25,7 @@ public partial class LinearProjectile : Area2D, IProjectile
|
|||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
Translate(Vector2.Right * _speed * (float)delta * Utility.TileWidth);
|
||||
Translate(Transform.X * _speed * (float)delta * Utility.TileWidth);
|
||||
}
|
||||
|
||||
public void OnAreaEntered(Area2D area)
|
||||
|
|
@ -39,7 +39,7 @@ public partial class LinearProjectile : Area2D, IProjectile
|
|||
if (_impactEffect != null)
|
||||
entity.GiveEffect(_impactEffect);
|
||||
|
||||
PoolContainer.Instance.SpawnParticles(particles, GlobalPosition);
|
||||
PoolContainer.Instance.SpawnParticles(particles, GlobalTransform);
|
||||
|
||||
QueueFree();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue