drgame-cc 1.0.42 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,12 +19,19 @@
19
19
  "_children": [
20
20
  {
21
21
  "__id__": 2
22
+ },
23
+ {
24
+ "__id__": 5
22
25
  }
23
26
  ],
24
27
  "_active": true,
25
- "_components": [],
28
+ "_components": [
29
+ {
30
+ "__id__": 8
31
+ }
32
+ ],
26
33
  "_prefab": {
27
- "__id__": 5
34
+ "__id__": 9
28
35
  },
29
36
  "_opacity": 255,
30
37
  "_color": {
@@ -75,7 +82,7 @@
75
82
  },
76
83
  {
77
84
  "__type__": "cc.Node",
78
- "_name": "skeleton",
85
+ "_name": "mask",
79
86
  "_objFlags": 0,
80
87
  "_parent": {
81
88
  "__id__": 1
@@ -90,6 +97,113 @@
90
97
  "_prefab": {
91
98
  "__id__": 4
92
99
  },
100
+ "_opacity": 200,
101
+ "_color": {
102
+ "__type__": "cc.Color",
103
+ "r": 255,
104
+ "g": 255,
105
+ "b": 255,
106
+ "a": 255
107
+ },
108
+ "_contentSize": {
109
+ "__type__": "cc.Size",
110
+ "width": 1920,
111
+ "height": 1080
112
+ },
113
+ "_anchorPoint": {
114
+ "__type__": "cc.Vec2",
115
+ "x": 0.5,
116
+ "y": 0.5
117
+ },
118
+ "_trs": {
119
+ "__type__": "TypedArray",
120
+ "ctor": "Float64Array",
121
+ "array": [
122
+ 0,
123
+ 0,
124
+ 0,
125
+ 0,
126
+ 0,
127
+ 0,
128
+ 1,
129
+ 1,
130
+ 1,
131
+ 1
132
+ ]
133
+ },
134
+ "_eulerAngles": {
135
+ "__type__": "cc.Vec3",
136
+ "x": 0,
137
+ "y": 0,
138
+ "z": 0
139
+ },
140
+ "_skewX": 0,
141
+ "_skewY": 0,
142
+ "_is3DNode": false,
143
+ "_groupIndex": 0,
144
+ "groupIndex": 0,
145
+ "_id": ""
146
+ },
147
+ {
148
+ "__type__": "cc.Sprite",
149
+ "_name": "",
150
+ "_objFlags": 0,
151
+ "node": {
152
+ "__id__": 2
153
+ },
154
+ "_enabled": true,
155
+ "_materials": [
156
+ {
157
+ "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
158
+ }
159
+ ],
160
+ "_srcBlendFactor": 770,
161
+ "_dstBlendFactor": 771,
162
+ "_spriteFrame": {
163
+ "__uuid__": "f6aace52-c6f1-417b-a839-fde3c205f9d6"
164
+ },
165
+ "_type": 1,
166
+ "_sizeMode": 0,
167
+ "_fillType": 0,
168
+ "_fillCenter": {
169
+ "__type__": "cc.Vec2",
170
+ "x": 0,
171
+ "y": 0
172
+ },
173
+ "_fillStart": 0,
174
+ "_fillRange": 0,
175
+ "_isTrimmedMode": true,
176
+ "_atlas": null,
177
+ "_id": ""
178
+ },
179
+ {
180
+ "__type__": "cc.PrefabInfo",
181
+ "root": {
182
+ "__id__": 1
183
+ },
184
+ "asset": {
185
+ "__id__": 0
186
+ },
187
+ "fileId": "8dNQBNAh9E97y/EdTXOupL",
188
+ "sync": false
189
+ },
190
+ {
191
+ "__type__": "cc.Node",
192
+ "_name": "skeleton",
193
+ "_objFlags": 0,
194
+ "_parent": {
195
+ "__id__": 1
196
+ },
197
+ "_children": [],
198
+ "_active": true,
199
+ "_components": [
200
+ {
201
+ "__id__": 6
202
+ }
203
+ ],
204
+ "_prefab": {
205
+ "__id__": 7
206
+ },
93
207
  "_opacity": 255,
94
208
  "_color": {
95
209
  "__type__": "cc.Color",
@@ -142,7 +256,7 @@
142
256
  "_name": "",
143
257
  "_objFlags": 0,
144
258
  "node": {
145
- "__id__": 2
259
+ "__id__": 5
146
260
  },
147
261
  "_enabled": true,
148
262
  "_materials": [
@@ -188,6 +302,16 @@
188
302
  "fileId": "773nu47W9KRIk2SeNjYEqp",
189
303
  "sync": false
190
304
  },
305
+ {
306
+ "__type__": "cc.BlockInputEvents",
307
+ "_name": "",
308
+ "_objFlags": 0,
309
+ "node": {
310
+ "__id__": 1
311
+ },
312
+ "_enabled": true,
313
+ "_id": ""
314
+ },
191
315
  {
192
316
  "__type__": "cc.PrefabInfo",
193
317
  "root": {
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "1.3.2",
3
+ "uuid": "120edc35-743b-4658-a087-bdd9ae1233ad",
4
+ "importer": "prefab",
5
+ "optimizationPolicy": "AUTO",
6
+ "asyncLoadAssets": false,
7
+ "readonly": false,
8
+ "subMetas": {}
9
+ }
@@ -7,8 +7,7 @@ const { ccclass, property } = cc._decorator;
7
7
 
8
8
  @ccclass
9
9
  export default class HelperWin extends cc.Component {
10
- @property(sp.Skeleton)
11
- spine: sp.Skeleton = null;
10
+ private spine: sp.Skeleton = null;
12
11
 
13
12
  private nativeBackHandler: () => boolean = null;
14
13
 
@@ -262,20 +262,18 @@ export class PlatformAdapter {
262
262
  this.webBridge.callHandler("router/navigateBack", {}, (a) => { cc.log(a); });
263
263
  return;
264
264
  }
265
- var GRoot = window['GRoot'];
266
- let bridge: ILobbyBridge = GRoot && GRoot.inst.node.getComponentInChildren('LobbyBridge');
267
- bridge && bridge.exitGame();
265
+ if (AdSdk.exitGame) AdSdk.exitGame();
266
+ cc.game.end();
267
+ // var GRoot = window['GRoot'];
268
+ // let bridge: ILobbyBridge = GRoot && GRoot.inst.node.getComponentInChildren('LobbyBridge');
269
+ // bridge && bridge.exitGame();
268
270
  }
269
271
 
270
- /** 显示玩法说明界面
271
- * @param url 玩法说明界面spine动画资源路径, 相对于resources/spine/目录
272
- * @param cb 关闭玩法说明界面回调
273
- */
274
- public static async showHelperWin(url: string, cb: () => void) {
272
+ public static async showHelper(url: string, cb: () => void) {
275
273
  var key = `${this._zhName}-isFirst`;
276
274
  var isFirst = cc.sys.localStorage.getItem(key);
277
275
  if (!isFirst) {
278
- cc.sys.localStorage.setItem(key, true);
276
+ cc.sys.localStorage.setItem(key, false);
279
277
  let helperPfb = await Loader.loadRes('drres/prefab/HelperWin', cc.Prefab);
280
278
  let helperWin = cc.instantiate(helperPfb);
281
279
  helperWin.parent = cc.director.getScene();