Calling a method from my InputReader class
I have implemented the new Input System into my game and have a class called InputReader.cs setup for holding methods that the player will use. One method I created is called OnAction() which will listen for the E key to be pressed. I want to call this method from another class called LootChest.cs which is attached to a 3D chest that I want to open when the player is standing next to it and presses E. Im not sure how to exactly call this method inside LootChest.cs, I have InputReader.cs referenced and I can access OnAction() but it has some parameters inside it which I need to access which is InputAction.CallbackContext context
Here is the method I want to call
Here is my LootChest.cs class where I want to call the method from, right inside the OnTriggerEnter()
Your answer
Follow this Question
Related Questions
Rotation Changing Z-Coordinate Value 0 Answers
OnGUI will not show up? 1 Answer
Why isn't my object lerping ? C# 2 Answers
My audio doesn't play, I'm through my options... 1 Answer
Error FormatException: Input string was not in a correct format. 0 Answers