想实现点击背包中物品可以在背包的文本框中显示物品信息的功能,但是不知道为什么一点击背包中物品就如下报错,这是什么原因呢?
private static Test instance;
public static Test Instance
{
get
{
if (instance==null)
{
instance = new Test();
}
return instance;
}
}
44行报空,目前看就是单例写的有毛病,引用的也有毛病