private void Awake(){if(instance != null)Destroy(this);instance=this;}在一个背包脚本里的,有大佬知道是干什么的吗
销毁this对象,回收内存空间。