Map.js 419 B

12345678910111213141516171819202122232425262728
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. BGArr: {
  5. default: [],
  6. type: [cc.Node],
  7. serializable: true,
  8. },
  9. Player: {
  10. default: null,
  11. type: cc.Node,
  12. serializable: true,
  13. },
  14. },
  15. onLoad ()
  16. {
  17. this.distance = 0;
  18. },
  19. start ()
  20. {
  21. },
  22. update (dt)
  23. {
  24. },
  25. });