完善Creator版本为2.x时,把cc.KEY.back。修改成cc.macro.KEY.back的问题

This commit is contained in:
leo
2019-03-05 17:13:27 +08:00
parent 01d945b7c3
commit 30deba5e34
3 changed files with 108 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ cc.Class({
onKeyDown(event) {
switch (event.keyCode) {
//注意Creator版本为2.x的请把cc.KEY.back。修改成cc.macro.KEY.back
case cc.KEY.back:
if (this.isBackGame) {
cc.director.end();