GameStates.js 626 B

12345678910111213141516171819202122232425262728
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. bSinglePlayMode:false,
  5. },
  6. onLoad () {
  7. this.currentTime = 0;
  8. this.kCal = 0;
  9. this.currentRound = 0;
  10. this.bRest = true;
  11. this.roundTime = 0;
  12. this.currentSoundIndex = 0;
  13. this.currentActionIndex = 0;
  14. this.bLoop = false;
  15. this.default=0;
  16. this.demonstration=1;
  17. this.countDown=2;
  18. this.playing=3;
  19. this.curretState = this.default;
  20. this.hightLightActionArr = [];
  21. //面板数据
  22. this.missCount = 0;
  23. this.hitCount = 0;
  24. },
  25. });