@guy120334913 wrote:
Hello!
I am trying to create a separate ContentHandler class in my game, but I am having troubles loading/unloading content outside of the main game class.
I believe that in the olden days of XNA you could simply pass the ContentManager in the constructor for the new class, like so:
public ContentHandler(ContentManager content) { _content = content; }
And then load/unload the content in the class's methods, but I tried that and it doesn't seem to work with MonoGame. Could anyone point me in the right direction?
Posts: 2
Participants: 1