MissingReferenceException: The object of type 'ScoreDataIntance' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object.
今天发现自己的毕业设计有个小bug,报了这个错误,原因是,添加了通信协议监听,场景跳转,也就是1场景跳到2场景时,在1场景添加的协议监听,没有在1场景移除,然后从2场景又跳回1场景,就报了这么个错误,一开始看它的错误信息是MissingReferenceException,以为场景跳回没有空引用,重新把代码逻辑读一遍发现了没有把协议移除,淦!给兄弟们踩个坑