【发布时间】:2018-05-14 12:58:06
【问题描述】:
我正在使用 MonoGame 学习 c#。 如何在此类中加载纹理?我不能使用 this.Content.Load("texture");
public class Mob1
{
Texture2D texture;
public float X;
public float Y;
public Mob1(float x, float y, Texture2D texture)
{
this.X = x;
this.Y = y;
this.texture = texture;
}
public Mob1()
{
this.X = 50;
this.Y = 50;
this.texture = ???;
}
【问题讨论】: