read engine version from remote.

This commit is contained in:
Nan Wang
2016-02-20 15:01:04 +08:00
parent 44588dc9b7
commit 69b00a9895
+7 -1
View File
@@ -31,7 +31,13 @@
* @type {String}
* @name cc.ENGINE_VERSION
*/
window['CocosEngine'] = cc.ENGINE_VERSION = 'Cocos Creator v0.8.0';
var engineVersion;
if (CC_EDITOR) {
engineVersion = 'Cocos Creator v' + Editor.remote.versions.CocosCreator;
} else {
engineVersion = 'Cocos Creator';
}
window['CocosEngine'] = cc.ENGINE_VERSION = engineVersion;
/**
* <p>