aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/Player/PlayerSegment.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-13 13:14:23 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-13 13:14:23 -0400
commit65975146e07e33aa5cf5de83bee76c537ba787e3 (patch)
treefa8b5794900755503d02a2b282a3cf254eee0f7f /Assets/Scripts/Controllers/Player/PlayerSegment.cs
parent1b91ab39bdde7cf2a2b68472ae30a76b48311aa5 (diff)
downloadgmtk-gamejam-master.tar.gz
gmtk-gamejam-master.tar.zst
gmtk-gamejam-master.zip
Add VFXHEADmaster
Diffstat (limited to 'Assets/Scripts/Controllers/Player/PlayerSegment.cs')
-rw-r--r--Assets/Scripts/Controllers/Player/PlayerSegment.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Assets/Scripts/Controllers/Player/PlayerSegment.cs b/Assets/Scripts/Controllers/Player/PlayerSegment.cs
index 67b3ecf..aac0164 100644
--- a/Assets/Scripts/Controllers/Player/PlayerSegment.cs
+++ b/Assets/Scripts/Controllers/Player/PlayerSegment.cs
@@ -48,7 +48,12 @@ namespace Controllers.Player
private void OnCollisionEnter2D(Collision2D other)
{
- if (callFoulOnContact && game.player.HasBall && other.gameObject.CompareTag("Ground"))
+ if (!callFoulOnContact) return;
+ Debug.Log("ENTERED");
+ Debug.Log(other.gameObject.CompareTag("Ground"));
+ Debug.Log(game.player.HasBall);
+ Debug.Log("---");
+ if (game.player.HasBall && other.gameObject.CompareTag("Ground"))
game.player.Foul("LOOSE BALL FOUL");
}
}