window.global = new cc.Class({});
global.transformTime = (num)=>{
let hour = Math.floor(num / (3600000));
let minute = Math.floor((num - hour * 3600000)/60000);
let second = Math.floor((num - hour * 3600000 - minute * 60000)/1000)
return (hour + "时" + minute + "分" + second + "秒")
};
global.TOUCH_ID = -1;
global可以全局调用