mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-28 13:24:07 -05:00
small adjustment to bumper
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user