mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 11:35:53 +00:00
Collisions and cooldowns
This commit is contained in:
parent
0eb6a9140f
commit
6ff1ab76ed
9 changed files with 105 additions and 3848 deletions
|
|
@ -70,7 +70,12 @@ public partial class Bullet : Area2D
|
|||
|
||||
private void _on_area_entered(Area2D area)
|
||||
{
|
||||
// Replace with function body.
|
||||
if (area.IsInGroup("Solid"))
|
||||
{
|
||||
QueueFree();
|
||||
return;
|
||||
}
|
||||
|
||||
if (area.IsInGroup("Destroyable") && area is IDestructible destructible)
|
||||
{
|
||||
//Debug.WriteLine("Collision with destroyable object area");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue