Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Gungniru |
I’m trying to change a variable in a script of an object a player is colliding with whenever the player presses space. However, using I always get whenever space is pressed. Now I understand I have to provide path to the collider’s node, the question is, is there a way around this? I can’t provide a path since I don’t know what I’m colliding with. Surely there is a more sofisticated way than to check for each collider independently.