]> git.cameronkatri.com Git - gmtk-gamejam.git/blobdiff - Assets/Scripts/Controllers/Player/PlayerSegment.cs
Add VFX
[gmtk-gamejam.git] / Assets / Scripts / Controllers / Player / PlayerSegment.cs
index 67b3ecf2726ea8f9fbb6eb3aed482c0e95be1cb7..aac0164e7dcbdd8ef747f19c471b069d58df7f51 100644 (file)
@@ -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");
     }
   }