12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
- onEnable() {
- if (window.wx != undefined) {
- window.wx.postMessage({
- messageType: 0
- });
- }
- },
- init() {
- },
- previousPage() {
- if (window.wx != undefined) {
- window.wx.postMessage({
- messageType: 1
- });
- }
- },
- nextPage() {
- if (window.wx != undefined) {
- window.wx.postMessage({
- messageType: 2
- });
- }
- }
- // update (dt) {},
- });
|