MissingReferenceException: The object of type 'UIRoomPanel' 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.
出现这个错误是因为我使用了EventCenter,注册时做了一次判断
如果含有键值就不注册,所以在重新加载到原来的场景时,因为没有将原来旧的脚本注册的方法移除,就出现了引用异常的问题
所以我增加了在销毁时调用移除旧方法的代码,就没有引用异常了