creator导入到微信开发工具编译报错了

用creator 导出成微信平台项目后, 在微信开发工具里面编译时报错了,在creator里面正常。 报错的是

说 UnitManager is not defined 没有定义, 但是 我确实有 定义的, 在 creator里面运行也正常的,