Using Content.Load<> in a class/subclass
问题 I'm wondering if there is anyway to use the "Content.Load<>" in a class that is not the game itself, say I want to load a texture from within the class, rather than sending the texture to it. namespace ProjectGame1 { public class Ship { public Texture2D texture; public Ship() { this.texture = Content.Load<Texture2D>("ship"); } } } That's an example of what I'm trying to achieve 回答1: You just need to pass your ContentManager to the Ship object: public Ship(ContentManager content) { this