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