Why do non of the override methods from the agent class run for me?

Methods like OnEpisodeBegin and OnActionReceived just don’t run for me for some reason. When debugging with visual studio I can see that those methods are never run and even visual studio warns me this is unreachable code.

I have over 300 lines of codes across several scripts so just pasting them here is unreasonable. I would paste the relevant parts of it but I don’t know what they are so just tell me what code you want to see and I’ll put it here.

Hey - which version of ML-Agents are you using? Also, are you trying to train one of the demo envs in ML-Agents or your own?

I am on version 2.1.0 but I also had this problem when I was on 1.0.8.
I am using my own agent.