Having my player interact with objects?

I want to make it so when I press a button then my player will detect if there’s an object in front of him he can interact with. He’ll check to his left if his scale is negative, right if his scale is positive. Intractable objects will have a tag called Usable. If they are used then code will be executed in a script that intractable objects have called Used. Also I want to do this in C#.

I see a series of declarative statements and no question, @SoloWanderer

2 Likes

Oh, whoops. Forgot the question. How do I do everything I listed in my declarative statements?

Start with some scripting tutorials, learn about the physics system and go from there!

1 Like