small adjustment to bumper

This commit is contained in:
Melbyj1125
2022-01-28 13:55:45 -06:00
parent 9c3462521e
commit 99994e945b
2 changed files with 2 additions and 3 deletions

View File

@@ -8,7 +8,6 @@ public class Bumper : MonoBehaviour {
// Is called whenever something collides with the bumper
void OnTriggerEnter(Collider objectHit) {
if (objectHit.transform.parent.gameObject.tag == "Player") {//Checks if the other object is the player
PlayerMovement playerMovement = objectHit.GetComponent<PlayerMovement>();