diff options
Diffstat (limited to 'Assets/Scripts/Controllers/Player/PlayerSegment.cs')
-rw-r--r-- | Assets/Scripts/Controllers/Player/PlayerSegment.cs | 7 |
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"); } } |