Level_num.js 526 B

12345678910111213141516171819202122232425
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. Label:cc.Label
  5. },
  6. // 存储数据:cc.sys.localStorage.setItem(“key”,”value”)
  7. // 获取数据:cc.sys.localStorage.getItem(“key”)
  8. // 移除数据:cc.sys.localStorage.removeItem(“key”)
  9. // 清除所有:cc.sys.localStorage.clear()
  10. // use this for initialization
  11. onLoad: function () {
  12. this.Label.string = 'Level '+Global.LevelNow;
  13. },
  14. // called every frame
  15. update: function (dt) {
  16. },
  17. });