In my case I am using a Unity Event Wrapper, which is in a 3rd party package (Oculus Interaction), that is supposed to call a method from the GameManager (My main management script) which is attached as a component to a GameObject in the hierarchy.
(Probably since the event wrapper is a part of a prefab) the GameManager cannot be referenced by the event wrapper (only scripts and prefabs are possible).
It might also be useful to say that it is not possible to get the GameManager instance in the Unity event wrapper code because it is “encapsulated” by an assembly definition.
Does anyone know how I can change my GameManager or use the Unity Event Wrapper differently to call the method?
Maybe something similar to this has happened to someone before.
I’m always willing to answer questions that provide a clearer picture of the problem.
Thanks for all the answers in advance!