mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 00:05:55 +00:00
Restored enemy bullets collision
This commit is contained in:
parent
076cff208d
commit
4e09694692
5 changed files with 34 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ public partial class Bullet : Area2D
|
|||
|
||||
[Export]
|
||||
public float Damage = 1f;
|
||||
|
||||
[Export]
|
||||
public BulletOwner Owner = BulletOwner.None;
|
||||
|
||||
private Vector2 _direction = Vector2.Right;
|
||||
|
||||
|
|
@ -87,3 +90,10 @@ public partial class Bullet : Area2D
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum BulletOwner
|
||||
{
|
||||
None,
|
||||
Player,
|
||||
Enemy
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue