-1
레벨 클래스 생성자에 대한 매개 변수로 배경 이미지 (texture2d)를 가져야하는 Level.cs 클래스를 만들고 있습니다. 그러나 변수 'back'을 받아들이지 않을 것입니다. 어떻게해야합니까?클래스 생성자의 매개 변수로 Texture2D
public Level(Texture2D back ,ContentManager content, EventHandler ScreenEvent, Microsoft.Xna.Framework.Game game) : base(ScreenEvent)
{
background = content.Load<Texture2D>(back);
backgroundVector = new Vector2(-1150, 0);
velocity = 5.0f;
ground = 508;
graphics = new GraphicsDeviceManager(game);
}
대니.