MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. 在开发飞机大战的游戏过程中,遇到这样的错误,折腾了很久,最后终于解决了。 我遇到的问题是脚本挂载问题。把object制成预制体,不要放在面板中,这样挂载的脚本就不会报错,正常运行。