mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 19:43:55 +00:00
Shoot through
This commit is contained in:
parent
b3070cd71e
commit
92a82b05df
6 changed files with 31 additions and 42 deletions
|
|
@ -25,9 +25,9 @@ public partial class fragola : RigidBody2D
|
|||
private void _on_body_entered(Node body)
|
||||
{
|
||||
Debug.WriteLine("Collision");
|
||||
|
||||
|
||||
EmitSignal(SignalName.Hit);
|
||||
|
||||
|
||||
}
|
||||
private void _on_area_2d_area_entered(Area2D area)
|
||||
{
|
||||
|
|
@ -35,10 +35,10 @@ public partial class fragola : RigidBody2D
|
|||
Debug.WriteLine("Collision area");
|
||||
EmitSignal(SignalName.Hit);
|
||||
|
||||
if (_isAlive)
|
||||
if (_isAlive)
|
||||
{
|
||||
Explode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Explode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue