记录一下:今天学Unity写完enemy的脚本后一直报错,实在没办法了把项目关了重开结果又能运行了。NullReferenceException: Object reference not set to an instance of an object EnemyContorl.Update ()