Help! Object reference is required blah blah

uglyninja

Rookie
Original poster
May 29, 2018
1
0
1
28
poland ki
I'm modding Granny, a game by DVloper. Useful methods are in Assembly-UnityScript.dll.
How do i change a bool in other methods? For example in "-" there's a method called "shootGun" and i want to change a bool in a method called "shootGunButton". How do i do that? Also, i wanna do some other things related to that such as .SetActive(true); in other methods than the one i'm calling the commands from. How do i do that because when i do "shootGunButton.shotgunLoaded = true;" i get "object reference is requierd......". Please help!

Edit: Im using dnSpy