Threepeater added and line system removed
This commit is contained in:
parent
8fdc2a3ed9
commit
b5d2466be4
16 changed files with 131 additions and 209 deletions
|
|
@ -26,7 +26,7 @@ public partial class LinearProjectile : Area2D, IProjectile
|
|||
public void OnAreaEntered(Area2D area)
|
||||
{
|
||||
var entity = area.GetParent<IEntity>();
|
||||
if (entity != null && entity.Line == _line)
|
||||
if (entity != null)
|
||||
{
|
||||
entity.TakeDamage(_damage);
|
||||
if (entity is IEffectHandler effectHandler && _impactEffect != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue