yangqiwen 1 month ago
parent c437c99b97
commit 911bea4573
  1. BIN
      assets/CommonRes/texture/跳过.png
  2. 38
      assets/CommonRes/texture/跳过.png.meta
  3. 336
      assets/DH/DH_3/DH_3.prefab
  4. 10
      assets/FrameWork/Config/AppConfig.ts
  5. 2
      assets/FrameWork/User/User.ts
  6. 239
      assets/GameRes/JuQingChat/prefab/chatList.prefab
  7. BIN
      assets/GameRes/JuQingChat/texture/微信聊天/按钮.png
  8. 38
      assets/GameRes/JuQingChat/texture/微信聊天/按钮.png.meta
  9. 438
      assets/GameRoomRes/Room2/prefab/Room2.prefab
  10. 2363
      assets/MainHall/prefab/MainHall.prefab
  11. BIN
      assets/MainHall/texture/头像条.png
  12. 4
      assets/MainHall/texture/头像条.png.meta
  13. BIN
      assets/MainHall/texture/详情框.png
  14. 8
      assets/MainHall/texture/详情框.png.meta
  15. 41
      assets/Scripts/DH/DH_3.ts
  16. 20
      assets/Scripts/GameRoomRes/Room1/Room1.ts
  17. 7
      assets/Scripts/GameRoomRes/Room2/Room2.ts
  18. 4
      assets/Scripts/GameStoryRes/KaiChangGuanQia1Gai.ts
  19. 152
      assets/Scripts/JuQingChat/ChatList.ts
  20. 8
      assets/Scripts/JuQingChat/TaskManager.ts
  21. 14
      assets/Scripts/MainHall/MainHall.ts
  22. 383
      assets/Scripts/MainHall/MainHallBtn.ts
  23. 4
      assets/Scripts/MainScene/MainScene.ts
  24. 16
      assets/Scripts/Manager/JieDaoManager.ts
  25. 36
      assets/Scripts/Manager/LevelUpManager.ts
  26. 76
      assets/Scripts/Manager/MiShuManager.ts
  27. 56
      assets/Scripts/Manager/ZaoCanManager.ts
  28. 8
      assets/Scripts/Mishu/MishuItem.ts
  29. 129
      assets/Scripts/ZaoCanDian/ZaoCanDian.ts
  30. 25
      assets/Scripts/ZaoCanDian/ZaoCanDianNpc.ts
  31. 9
      assets/Scripts/ZaoCanDian/ZaoCanDianYeWuitemNode.ts
  32. 3585
      assets/ZaoCanDian/prefab/ZaoCanDian.prefab
  33. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc1.prefab
  34. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc2.prefab
  35. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc3.prefab
  36. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc4.prefab
  37. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc5.prefab
  38. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc6.prefab
  39. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc7.prefab
  40. 136
      assets/ZaoCanDian/prefab/ZaoCanDianNpc8.prefab
  41. 12
      assets/ZaoCanDian/prefab/ZaoCanDianYeWu.prefab
  42. BIN
      assets/ZaoCanDian/res/yewu/未解锁遮罩 (2).png
  43. 38
      assets/ZaoCanDian/res/yewu/未解锁遮罩 (2).png.meta
  44. BIN
      assets/ZaoCanDian/sound/油锅/油炸.mp3
  45. 2
      assets/ZaoCanDian/sound/油锅/油炸.mp3.meta
  46. BIN
      assets/ZaoCanDian/sound/煎锅/煎东西.mp3
  47. 2
      assets/ZaoCanDian/sound/煎锅/煎东西.mp3.meta
  48. BIN
      assets/ZaoCanDian/sound/煮锅/煮东西.mp3
  49. 2
      assets/ZaoCanDian/sound/煮锅/煮东西.mp3.meta
  50. BIN
      assets/ZaoCanDian/sound/豆浆桶/豆浆桶抛物线.mp3
  51. 8
      assets/ZaoCanDian/sound/豆浆桶/豆浆桶抛物线.mp3.meta
  52. BIN
      remotesound/DH/DH_3/sound/打开后女孩晕倒的场景背景音.mp3
  53. BIN
      remotesound/GameStoryRes/sound/KaiChangGuanQia1Gai/你他妈敢对老子动手?.mp3
  54. BIN
      remotesound/bgm/背景bgm.mp3
  55. BIN
      remotesound/effect/铁门打开.mp3

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "e37519d8-48f0-476c-85d2-e897c211e58d",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 73,
"height": 76,
"platformSettings": {},
"subMetas": {
"跳过": {
"ver": "1.0.6",
"uuid": "0f6a3cae-8ecd-451f-be25-e0143467f45d",
"importer": "sprite-frame",
"rawTextureUuid": "e37519d8-48f0-476c-85d2-e897c211e58d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 73,
"height": 76,
"rawWidth": 73,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

@ -31,22 +31,25 @@
},
{
"__id__": 89
},
{
"__id__": 103
}
],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 112
},
{
"__id__": 104
"__id__": 113
},
{
"__id__": 105
"__id__": 114
}
],
"_prefab": {
"__id__": 106
"__id__": 115
},
"_opacity": 255,
"_color": {
@ -3762,6 +3765,331 @@
"fileId": "afKndR+gFKC7n568QEwI37",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "推开",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 104
}
],
"_active": false,
"_components": [
{
"__id__": 108
},
{
"__id__": 109
}
],
"_prefab": {
"__id__": 111
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 157,
"height": 66
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-51.644,
0,
0,
0,
0,
1,
1.5,
1.5,
0
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 103
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 105
},
{
"__id__": 106
}
],
"_prefab": {
"__id__": 107
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 158,
"g": 78,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 52,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
3,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "推开",
"_N$string": "推开",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_width": 1,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "begMCzdvtC+pjlu8th/64U",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d56f80fb-deaf-4a01-9703-798221ae258c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 110
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "4d0b0/Zi1RLDb+UH/6mf4+1",
"handler": "onTouchTuiKai",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b6dDlUH0FDxZonIA5ro3SA",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",

@ -38,11 +38,11 @@ export default class AppConfig {
//--设置各自游戏的 资源服务器地址
public static TT_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.1/";
public static WX_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.1/";//资源服务器地址
public static QQ_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.1/";//资源服务器地址
public static VIVO_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.1/";//资源服务器地址
public static OPPO_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.1/";//资源服务器地址
public static TT_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.3/";
public static WX_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.3/";//资源服务器地址
public static QQ_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.3/";//资源服务器地址
public static VIVO_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.3/";//资源服务器地址
public static OPPO_ResServer_custom: string = "https://dycdn.ioe-times.com/xianyudefanji/remoteRes_1.0.3/";//资源服务器地址
public static APK_ResServer_custom: string = "";//资源服务器地址
//--各自游戏的版本

@ -3027,7 +3027,7 @@ export default class User {
Common5.lixianTime = 0
User._gameData_custom.headImg = "headImg1";
User._gameData_custom.headImgUnlock = ["headImg1"];
User._gameData_custom.money = 20000
User._gameData_custom.money = 500
User._gameData_custom.userIQ = 0
User._gameData_custom.yuanBao = 0
User._gameData_custom.day = 1

@ -34,6 +34,9 @@
},
{
"__id__": 87
},
{
"__id__": 96
}
],
"_active": true,
@ -3047,17 +3050,17 @@
"_active": true,
"_components": [
{
"__id__": 94
"__id__": 91
},
{
"__id__": 96
"__id__": 93
},
{
"__id__": 97
"__id__": 94
}
],
"_prefab": {
"__id__": 98
"__id__": 95
},
"_opacity": 255,
"_color": {
@ -3113,83 +3116,15 @@
"_parent": {
"__id__": 87
},
"_children": [
{
"__id__": 89
}
],
"_active": true,
"_components": [
{
"__id__": 92
}
],
"_prefab": {
"__id__": 93
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 156,
"height": 66
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 88
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 90
"__id__": 89
}
],
"_prefab": {
"__id__": 91
"__id__": 90
},
"_opacity": 255,
"_color": {
@ -3201,8 +3136,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 31.5
"width": 228,
"height": 91
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -3214,7 +3149,7 @@
"ctor": "Float64Array",
"array": [
0,
2.956,
0,
0,
0,
0,
@ -3238,50 +3173,6 @@
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "放下手机",
"_N$string": "放下手机",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 87
},
"asset": {
"__uuid__": "ac036a02-5ea3-4d6c-abf4-a95fc1b501be"
},
"fileId": "afzf/V4ulEt7opd8Wda5Nj",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
@ -3298,7 +3189,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "0ee98f53-8de6-409c-b645-bd2236613969"
"__uuid__": "10adf897-fec3-4d50-8ecc-6acedcc096a3"
},
"_type": 0,
"_sizeMode": 1,
@ -3339,7 +3230,7 @@
"zoomScale": 1.1,
"clickEvents": [
{
"__id__": 95
"__id__": 92
}
],
"_N$interactable": true,
@ -3455,6 +3346,108 @@
"fileId": "b9jv0EOeFF9KaL6fHxfIxR",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "guide",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 97
}
],
"_prefab": {
"__id__": 98
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 500,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
386.705,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 230.29500000000002,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "1eGsDalsdLdq2cz0vo6yQT",
"sync": false
},
{
"__type__": "9ca71RSiS5PiruNFQKOQzjW",
"_name": "",

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "fc423f1f-1224-41c3-b588-65679393b6bc",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 228,
"height": 91,
"platformSettings": {},
"subMetas": {
"按钮": {
"ver": "1.0.6",
"uuid": "10adf897-fec3-4d50-8ecc-6acedcc096a3",
"importer": "sprite-frame",
"rawTextureUuid": "fc423f1f-1224-41c3-b588-65679393b6bc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 228,
"height": 91,
"rawWidth": 228,
"rawHeight": 91,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 972 B

@ -24,9 +24,9 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 229,
"width": 290,
"height": 83,
"rawWidth": 229,
"rawWidth": 290,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 683,
"height": 35,
"rawWidth": 683,
"rawHeight": 35,
"width": 571,
"height": 43,
"rawWidth": 571,
"rawHeight": 43,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

@ -144,23 +144,8 @@ export default class DH_3 extends DHBase {
this.door.setAnimation(0, "砸锁", true)
if (this.progress.progress >= 1) {
this.m_bg.getChildByName("砸").active = false
this.door.setAnimation(0, "打开门", false)
this.door.setCompleteListener(() => {
this.door.setCompleteListener(null)
this.door.node.active = false
this.runBg(1, 2, this.MoveNodes.getChildByName("女儿"), () => {
this.showQiPao(this.chatConfig[5], () => {
User.setStatistics("zhangJie", 6)
TaskManager.finishCurMainTask(MainTaskIdEnum.MainTask_606)
TaskManager.setCurTask(MainTaskIdEnum.MainTask_701)
this.node.getChildByName("前往医院").active = true
}, () => {
// this.heishehui.setAnimation(0, "小弟说话", true)
});
})
})
this.node.getChildByName("推开").active = true
this.door.setAnimation(0, "没锁门", false)
}
if (!this.isTouch) {
@ -176,6 +161,28 @@ export default class DH_3 extends DHBase {
}
onTouchTuiKai() {
this.node.getChildByName("推开").active = false
this.door.setAnimation(0, "打开门", false)
Common5.playRemoteAudioEffect('effect/铁门打开')
this.door.setCompleteListener(() => {
this.door.setCompleteListener(null)
this.door.node.active = false
Common5.playRemoteAudioMusic("DH/DH_3/sound/打开后女孩晕倒的场景背景音", true)
this.runBg(1, 2, this.MoveNodes.getChildByName("女儿"), () => {
this.showQiPao(this.chatConfig[5], () => {
User.setStatistics("zhangJie", 6)
TaskManager.finishCurMainTask(MainTaskIdEnum.MainTask_606)
TaskManager.setCurTask(MainTaskIdEnum.MainTask_701)
this.node.getChildByName("前往医院").active = true
}, () => {
// this.heishehui.setAnimation(0, "小弟说话", true)
});
})
})
}
onTouchGoYiYuan() {
PrefabManage.showBlackGuoDu(() => {
PrefabManage.loadPrefabByType(GameType.DH_4)

@ -129,7 +129,9 @@ export default class Room1 extends cc.Component {
updateMainTask() {
this.node.getChildByName('手机').active = false
this.node.getChildByName('回家').active = true
this.guideView([this.node.getChildByName('回家')])
let node = this.node.getChildByName('回家')
node.getComponent(cc.Widget).updateAlignment()
this.guideView([node])
}
clickGoHome() {
@ -159,7 +161,7 @@ export default class Room1 extends cc.Component {
PrefabManage.loadPrefabByType(GameType.TaskInfoNode)
} else {
if (TaskManager.getIsLastTaskFinish()) {
PrefabManage.showTextTips('后续剧情策划挠头制作中,敬请期待!')
PrefabManage.showTextTips('后续剧情策划挠头制作中,敬请期待!')
} else {
PrefabManage.showTextTips('当前无任务')
}
@ -168,18 +170,18 @@ export default class Room1 extends cc.Component {
}
guideView(nodeArray) {
if (this.maskGuideNode == null) {
// if (this.maskGuideNode == null) {
PrefabManage.loadPrefabByType(GameType.GuideMskNode, this.node, (prefab) => {
let guideNodeArray = nodeArray
this.maskGuideNode = prefab
let firstNode = guideNodeArray.shift()
prefab.getComponent(NewGuideScript).setBindNode(firstNode, guideNodeArray)
})
} else {
this.maskGuideNode.active = true
let guideNodeArray = nodeArray
let firstNode = guideNodeArray.shift()
this.maskGuideNode.getComponent(NewGuideScript).setBindNode(firstNode, guideNodeArray)
}
// } else {
// this.maskGuideNode.active = true
// let guideNodeArray = nodeArray
// let firstNode = guideNodeArray.shift()
// this.maskGuideNode.getComponent(NewGuideScript).setBindNode(firstNode, guideNodeArray)
// }
}
}

@ -86,10 +86,10 @@ let ChadianConfig = {
],
chadianLog402: [
{
str: "爸爸,妈妈怎么跟丑叔叔走了。",
str: "我脸好疼,妈妈,怎么跟丑叔叔走了",
qiPaoPos: 3,
delay: 2,
effectUrl: "GameRoomRes/sound/Room2/爸爸,妈妈怎么跟丑叔叔走了。"
effectUrl: "GameRoomRes/sound/Room2/我脸好疼,妈妈,怎么跟丑叔叔走了"
},
{
str: "以后爸爸一个人也会好好照顾你的。",
@ -120,6 +120,9 @@ export default class Room2 extends cc.Component {
start() {
GameBaseScript.preLoadRemoteAudio(ChadianConfig);
this.scheduleOnce(()=>{
PrefabManage.preloadPrefabByType(GameType.ZaoCanDian)
},0.5)
EventMgr.onEvent_custom(ryw_Event.NormalTouchEndCheck, (data_) => {
this.normalTouchCallback(data_.targetNode);

@ -62,10 +62,10 @@ let ChadianConfig = {
effectUrl: "GameStoryRes/sound/KaiChangGuanQia1Gai/你们是觉得我很好欺负吗?"
},
{
str: "你**敢对老子动手?你找死是吧!",
str: "你他妈敢对老子动手?",
qiPaoPos: 6,
delay: 3.7,
effectUrl: "GameStoryRes/sound/KaiChangGuanQia1Gai/你**敢对老子动手?你找死是吧!"
effectUrl: "GameStoryRes/sound/KaiChangGuanQia1Gai/你他妈敢对老子动手?"
},
{
str: "陈天霸你给我等着,一年内我让你西餐厅破产!",

@ -8,23 +8,25 @@ import ChatManager from "./ChatManager";
import JuQingManager from "./JuQingManager";
import { ryw_Event } from "../../FrameWork/Event/EventEnum";
import EventMgr from "../../FrameWork/Event/EventMgr";
const {ccclass, property} = cc._decorator;
import NewGuideScript from "../NewGuide/NewGuideScript";
import TaskManager, { MainTaskIdEnum } from "./TaskManager";
const { ccclass, property } = cc._decorator;
@ccclass
export default class ChatList extends GameBase {
//聊天列表
@property(cc.Node)
chatListNode:cc.Node = null
chatListNode: cc.Node = null
@property(cc.Node)
chatListContent:cc.Node = null
chatListContent: cc.Node = null
@property(cc.Node)
listItem:cc.Node = null
listItem: cc.Node = null
curDay = 0//当天
curChatTag = ''
isChange = true
curChatTag = ''
isChange = true
initView(chatTag){
initView(chatTag) {
this.curChatTag = chatTag
this.curDay = User.getDay()
this.initListInfo()
@ -32,7 +34,7 @@ export default class ChatList extends GameBase {
onLoad() {
super.onLoad()
}
protected start(): void {
@ -40,37 +42,43 @@ export default class ChatList extends GameBase {
this.isChange = true
this.initListInfo()
EventMgr.onEvent_custom(ryw_Event.ExitBtnEvent,()=>{
if(cc.isValid(this.node, true)){
EventMgr.onEvent_custom(ryw_Event.ExitBtnEvent, () => {
if (cc.isValid(this.node, true)) {
this.isChange = true
console.log('initListInfo++++++++++++刷新')
this.chatListContent.removeAllChildren()
this.chatListContent.destroyAllChildren()
this.initListInfo()
}
},this)
}, this)
console.log('isHaveNewMessage=========================', ChatManager.isHaveNewMessage());
this.scheduleOnce(()=>{
this.scheduleOnce(() => {
PrefabManage.preloadPrefabByType(GameType.ChatDialog)
},0)
}, 0)
let mainTaskInfo: any = TaskManager.getCurUnLockMainTaskInfo()
let mainId = mainTaskInfo.Id
if (mainId == MainTaskIdEnum.MainTask_101) {
this.guideView([this.node.getChildByName("guide")])
}
}
onDestroy(): void {
super.onDestroy()
}
//初始化聊天列表(第几天)
initListInfo(){
console.log("当前是第"+this.curDay+"天--")
let allJuQingChatConfig:any = Common5.allJuQingChatConfig
initListInfo() {
console.log("当前是第" + this.curDay + "天--")
let allJuQingChatConfig: any = Common5.allJuQingChatConfig
let nameArray = []
let tempNameTab = []
let tempChilds = []
Object.keys(allJuQingChatConfig).forEach(name => {
Object.keys(allJuQingChatConfig).forEach(name => {
//console.log(name)
nameArray.push(name)
});
@ -79,63 +87,63 @@ export default class ChatList extends GameBase {
this.schedule(() => {
let name = nameArray[i]
let personConfig = JuQingManager.getPersonJsonByJsonName(name)
if(personConfig.type == 'RJB' || personConfig.type == 'DH'){
}else{
if (personConfig.type == 'RJB' || personConfig.type == 'DH') {
} else {
let personJson = ChatManager.getPersonConfig(name)
let recordData = ChatManager.getChatRecordDataByJson(name)
//console.log(recordData,'recordData+++++++++++++===')
if(recordData && recordData.length > 0){
if (recordData && recordData.length > 0) {
//duihuaArray.push[]
let childItem = cc.instantiate(this.listItem)
let nameStr = ChatManager.getNameByJson(name)
childItem.getChildByName("nameStr").getComponent(cc.Label).string = nameStr
tempNameTab.push(nameStr)
let chatPerson = ChatManager.getConfigByJsonName(name)
Common5.addUrlSprite_custom("head/"+chatPerson.imgPath, childItem.getChildByName("avatar").getComponent(cc.Sprite));
let itemInfo = this.getListItemStr(name,personJson,recordData,childItem.getChildByName("flag"))
Common5.addUrlSprite_custom("head/" + chatPerson.imgPath, childItem.getChildByName("avatar").getComponent(cc.Sprite));
let itemInfo = this.getListItemStr(name, personJson, recordData, childItem.getChildByName("flag"))
let contentStr = itemInfo.contentDesc
let indexStr = itemInfo.indexStr
if(contentStr.length > 14){
if (contentStr.length > 14) {
contentStr = contentStr.substr(0, 14) + "..."
}
childItem.getChildByName("contentStr").getComponent(cc.Label).string = contentStr
childItem.attr({jsonName:name,playInfo:allJuQingChatConfig[name],indexStr:indexStr})
childItem.attr({ jsonName: name, playInfo: allJuQingChatConfig[name], indexStr: indexStr })
childItem.active = true
let isFinish = true
for(let rei = 0;rei<recordData.length;rei++){
for (let rei = 0; rei < recordData.length; rei++) {
let data_ = recordData[rei]
if(data_.isFinish == false){
if (data_.isFinish == false) {
isFinish = false
break
}
}
childItem['isFinish'] = isFinish
tempChilds[tempChilds.length] = childItem
}
}
i++
if(i==count && this.isChange){
//聊天置顶
this.isChange = false
if(tempChilds.length>0){
if (i == count && this.isChange) {
//聊天置顶
this.isChange = false
if (tempChilds.length > 0) {
let idexz = 0
for(let i = 0;i<tempChilds.length;i++){
for (let i = 0; i < tempChilds.length; i++) {
if(!tempChilds[i]['isFinish']){
if (!tempChilds[i]['isFinish']) {
idexz++
tempChilds[i].zIndex = idexz
this.chatListContent.addChild(tempChilds[i])
}
}
for(let i = 0;i<tempChilds.length;i++){
if(tempChilds[i]['isFinish']){
for (let i = 0; i < tempChilds.length; i++) {
if (tempChilds[i]['isFinish']) {
idexz++
tempChilds[i].zIndex = idexz
this.chatListContent.addChild(tempChilds[i])
@ -145,57 +153,69 @@ export default class ChatList extends GameBase {
}
if(Common5.isOpenChatPeople != ''){
if (Common5.isOpenChatPeople != '') {
let people = Common5.isOpenChatPeople;
let event = {
target:{
target: {
jsonName: people
}
}
Common5.isOpenChatPeople = ''
this.onItemListClick(event)
this.onItemListClick(event)
}
PrefabManage.preloadPrefabByType(GameType.ChatDialog)
}
}, 0, count-1, 0)
}, 0, count - 1, 0)
}
//点击进入聊天
onItemListClick(event){
PrefabManage.loadPrefabByType(GameType.ChatDialog,null,(prefabNode)=>{
prefabNode.getComponent(ChatDialog).enterDialog(event.target.jsonName,null,()=>{
onItemListClick(event) {
PrefabManage.loadPrefabByType(GameType.ChatDialog, null, (prefabNode) => {
prefabNode.getComponent(ChatDialog).enterDialog(event.target.jsonName, null, () => {
this.initListInfo()
})
})
}
//显示列表的显示内容
getListItemStr(jsonName,personJson,recordData,flagNode){
getListItemStr(jsonName, personJson, recordData, flagNode) {
let indexStr = ''
//优先显示未完成对话的第一条
for(let i=0;i<recordData.length;i++){
if(!recordData[i].isFinish){
for (let i = 0; i < recordData.length; i++) {
if (!recordData[i].isFinish) {
indexStr = recordData[i].indexStr
for(let j=0;j<personJson.length;j++){
if(personJson[j].indexStr == indexStr){
for (let j = 0; j < personJson.length; j++) {
if (personJson[j].indexStr == indexStr) {
flagNode.active = true
return {contentDesc:personJson[j].contentDesc,indexStr:indexStr}
return { contentDesc: personJson[j].contentDesc, indexStr: indexStr }
}
}
}
}
//显示已聊天的最后一条
indexStr = recordData[recordData.length-1].indexStr
for(let k=personJson.length-1;k>=0;k--){
if(personJson[k].indexStr == indexStr){
indexStr = recordData[recordData.length - 1].indexStr
for (let k = personJson.length - 1; k >= 0; k--) {
if (personJson[k].indexStr == indexStr) {
flagNode.active = false
return {contentDesc:personJson[k].contentDesc,indexStr:indexStr}
return { contentDesc: personJson[k].contentDesc, indexStr: indexStr }
}
}
PrefabManage.showTextTips('这里没获取到内容?'+jsonName)
PrefabManage.showTextTips('这里没获取到内容?' + jsonName)
flagNode.active = false
return {contentDesc:"",indexStr:""}
return { contentDesc: "", indexStr: "" }
}
guideView(nodeArray, opacity = -1) {
PrefabManage.loadPrefabByType(GameType.GuideMskNode, this.node, (prefab) => {
// prefab.zIndex = 199
let guideNodeArray = nodeArray
let firstNode = guideNodeArray.shift()
prefab.getComponent(NewGuideScript).setBindNode(firstNode, guideNodeArray)
if (opacity != -1) {
prefab.getComponent(NewGuideScript).setOpacityMaskNode(opacity)
}
})
}
}

@ -256,13 +256,13 @@ let TaskListConfig = [
{
TaskId: MainTaskIdEnum.MainTask_502, includeSubTaskId: [], needFinishSubTaskId: SubTaskIdEnum.SubTask_None,
TaskTittle: '骤至的债务', TaskDesc: '筹齐【500万】偿还高利贷', TaskNeedMoney: 0, taskNum: 5000000, finishUnLockJuQingIndex: '',
TaskTittle: '骤至的债务', TaskDesc: '筹齐【500万】还黑贷', TaskNeedMoney: 0, taskNum: 5000000, finishUnLockJuQingIndex: '',
subtitle: 10, isAutoTanChu: true
},
{
TaskId: MainTaskIdEnum.MainTask_503, includeSubTaskId: [], needFinishSubTaskId: SubTaskIdEnum.SubTask_None,
TaskTittle: '骤至的债务', TaskDesc: '骑电驴前往贷款公司偿还', TaskNeedMoney: 0, finishUnLockJuQingIndex: 'WX_5', wanFaRuKouTip: ['rk_chuZuChe'],
TaskTittle: '骤至的债务', TaskDesc: '前往贷款公司偿还', TaskNeedMoney: 0, finishUnLockJuQingIndex: 'WX_5', wanFaRuKouTip: ['rk_chuZuChe'],
subtitle: 11, isAutoTanChu: true
},
@ -284,7 +284,7 @@ let TaskListConfig = [
},
{
TaskId: MainTaskIdEnum.MainTask_604, includeSubTaskId: [], needFinishSubTaskId: SubTaskIdEnum.SubTask_None,
TaskTittle: '女儿被绑架', TaskDesc: '筹齐女儿的赎金2000万】', TaskNeedMoney: 0, finishUnLockJuQingIndex: '',taskNum: 20000000,
TaskTittle: '女儿被绑架', TaskDesc: '筹齐【2000万】赎金', TaskNeedMoney: 0, finishUnLockJuQingIndex: '',taskNum: 20000000,
subtitle: 15, isAutoTanChu: true
},
{
@ -313,7 +313,7 @@ let TaskListConfig = [
{
TaskId: MainTaskIdEnum.MainTask_703, includeSubTaskId: [], needFinishSubTaskId: SubTaskIdEnum.SubTask_None,
TaskTittle: '命运的捉弄', TaskDesc: '筹齐女儿的医疗费【100亿】', TaskNeedMoney: 0, taskNum: 10000000000, finishUnLockJuQingIndex: '',
TaskTittle: '命运的捉弄', TaskDesc: '筹齐医疗费【100亿】', TaskNeedMoney: 0, taskNum: 10000000000, finishUnLockJuQingIndex: '',
subtitle: 20, isAutoTanChu: true
},

@ -680,7 +680,7 @@ export default class MainHall extends UiBase {
// Common5.addUrlSprite_custom('jingjie/' + chenghao, this.chenghaoPic)
this.chenghao.string = chenghao
let levelLab = User.getMyLevel()
this.levelLab.string = levelLab + ''
this.levelLab.string = 'Lv.' + levelLab + ''
let node = this.node.getChildByName('UINode').getChildByName('bottom').getChildByName('升级')
//等级
@ -1108,9 +1108,9 @@ export default class MainHall extends UiBase {
let mainId = mainTaskInfo.Id
let ziChanData = User.getZiChanData()
let config = TaskManager.getTaskConfigById(mainId)
if (mainId == MainTaskIdEnum.MainTask_301) {
// User.setFirstStepIndex(1000)
// this.My_Guide()
if (mainId == MainTaskIdEnum.MainTask_303) {
let node = this.node.getChildByName('UINode').getChildByName('主线剧情')
this.guideView([node], 150)
} else if (mainId == MainTaskIdEnum.MainTask_532 && ziChanData.unLockNum[1] >= 1) {
// TaskManager.finishCurMainTask(MainTaskIdEnum.MainTask_532)
// TaskManager.setCurTask(MainTaskIdEnum.MainTask_533)
@ -1216,7 +1216,7 @@ export default class MainHall extends UiBase {
let uplab = this.node.getChildByName('收入提升').getChildByName('提升').getChildByName("lab")
let addlab = this.node.getChildByName('收入提升').getChildByName('提升').getChildByName("addlab")
let cha = ZaoCanManager.getDanJia() - ZaoCanManager.getLastDanJia()
uplab.getComponent(cc.Label).string = `${Common5.getNumberChangeHanzi(ZaoCanManager.getDanJia())}`
uplab.getComponent(cc.Label).string = `${Common5.getNumberChangeHanzi(ZaoCanManager.getDanJia())}`
// let str = ''
// for (let i = 0; i < cha.toString().length; i++) {
@ -1229,7 +1229,7 @@ export default class MainHall extends UiBase {
// addlab.getComponent(cc.Label).string = `+${str}元`
if (this.tween_ShouYiUpState) {
clearTimeout(this.clickTimeOutEvent);
addlab.getComponent(cc.Label).string = `+${Common5.getNumberChangeHanzi(cha)}`
addlab.getComponent(cc.Label).string = `+${Common5.getNumberChangeHanzi(cha)}`
} else {
cc.Tween.stopAllByTarget(this.node.getChildByName('收入提升'))
this.tween_ShouYiUpState = true
@ -1240,7 +1240,7 @@ export default class MainHall extends UiBase {
cc.tween().to(0.03, { scale: 1.2 }),
// cc.tween().delay(0.3),
cc.tween().call(() => {
addlab.getComponent(cc.Label).string = `+${Common5.getNumberChangeHanzi(cha)}`
addlab.getComponent(cc.Label).string = `+${Common5.getNumberChangeHanzi(cha)}`
}),
cc.tween().delay(1),
cc.tween().call(() => {

@ -19,12 +19,14 @@ import JuQingManager from "../JuQingChat/JuQingManager";
import TaskManager, { MainTaskIdEnum } from "../JuQingChat/TaskManager";
import ChengJiuManager from "../Manager/ChengJiuManager";
import DiaoLuoManager from "../Manager/DiaoLuoManager1";
import JieDaoManager from "../Manager/JieDaoManager";
import LevelUpManager from "../Manager/LevelUpManager";
import MiShuManager from "../Manager/MiShuManager";
import ShipuManager from "../Manager/ShipuManager";
import TanWeiManager from "../Manager/TanWeiManager";
import UserManager from "../Manager/UserManager";
import ZaoCanManager from "../Manager/ZaoCanManager";
import NewGuideScript from "../NewGuide/NewGuideScript";
import PaiHangBang from "../PaiHangBang/PaiHangBang";
import PrefabManage, { GameType } from "../PrefabManager/PrefabManage";
@ -97,9 +99,9 @@ export default class MainHallBtn extends cc.Component {
this.refreshBtnLab()
}, this)
// this.checkRedPoint()
this.checkRedPoint()
this.schedule(() => {
// this.checkRedPoint()
this.checkRedPoint()
this.checkHomeBtn()
}, 1)
this.showChatBtnStatus()
@ -376,133 +378,140 @@ export default class MainHallBtn extends cc.Component {
}
checkHomeBtn() {
// 回家
let isHaveTask = false
let mainTaskInfo: any = TaskManager.getCurUnLockMainTaskInfo()
let mainId = mainTaskInfo.Id
let config = TaskManager.getTaskConfigById(mainId)
let uiNode = this.node.getChildByName('UINode')
let huijiaArray = [
MainTaskIdEnum.MainTask_504, MainTaskIdEnum.MainTask_507, MainTaskIdEnum.MainTask_508, MainTaskIdEnum.MainTask_510, MainTaskIdEnum.MainTask_513, MainTaskIdEnum.MainTask_514_1, MainTaskIdEnum.MainTask_515,
MainTaskIdEnum.MainTask_516_1, MainTaskIdEnum.MainTask_517, MainTaskIdEnum.MainTask_518_1, MainTaskIdEnum.MainTask_519, MainTaskIdEnum.MainTask_520, MainTaskIdEnum.MainTask_525, MainTaskIdEnum.MainTask_527_1, MainTaskIdEnum.MainTask_529,
MainTaskIdEnum.MainTask_531_1, MainTaskIdEnum.MainTask_533, MainTaskIdEnum.MainTask_534_1, MainTaskIdEnum.MainTask_535, MainTaskIdEnum.MainTask_538,
MainTaskIdEnum.MainTask_541_1, MainTaskIdEnum.MainTask_543_2, MainTaskIdEnum.MainTask_544_1, MainTaskIdEnum.MainTask_546, MainTaskIdEnum.MainTask_547_1, MainTaskIdEnum.MainTask_549, MainTaskIdEnum.MainTask_550_1,
MainTaskIdEnum.MainTask_551_1, MainTaskIdEnum.MainTask_553, MainTaskIdEnum.MainTask_554_1
]
// let huijiaArray = []
if (mainId != MainTaskIdEnum.MainTask_None && huijiaArray.indexOf(mainId) >= 0) {
isHaveTask = true
}
let spineNodeTask = uiNode.getChildByName('主线剧情').getChildByName('spine')
if (isHaveTask) {
if (config && config.wanFaRuKouTip && config.wanFaRuKouTip.includes('rk_chuZuChe')) {
spineNodeTask.getComponent(sp.Skeleton).setAnimation(0, '呼吸', true)
uiNode.getChildByName('主线剧情').getChildByName('手指箭头').active = true
} else {
spineNodeTask.getComponent(sp.Skeleton).setAnimation(0, '静止', false)
}
let chengshiRedArr = [
MainTaskIdEnum.MainTask_509, MainTaskIdEnum.MainTask_512, MainTaskIdEnum.MainTask_516_2, MainTaskIdEnum.MainTask_524, MainTaskIdEnum.MainTask_528, MainTaskIdEnum.MainTask_537,
MainTaskIdEnum.MainTask_540, MainTaskIdEnum.MainTask_548, MainTaskIdEnum.MainTask_552, MainTaskIdEnum.MainTask_554_2, MainTaskIdEnum.MainTask_555
]
let chengshi = uiNode.getChildByName('城市').getChildByName('城市图标')
if (mainId != MainTaskIdEnum.MainTask_None && chengshiRedArr.indexOf(mainId) >= 0) {
chengshi.getComponent(sp.Skeleton).setAnimation(0, '呼吸', true)
} else {
chengshi.getComponent(sp.Skeleton).setAnimation(0, '静止', false)
uiNode.getChildByName('主线剧情').getChildByName('手指箭头').active = false
}
}
checkRedPoint() {
for (let i = 0; i < this.redPointArray.length; i++) {
this.redPointArray[i].getChildByName('红点').active = false
//需要过了任务301的引导后
if (User.getFirstStepIndex() < 9) {
return
}
// for (let i = 0; i < this.redPointArray.length; i++) {
// this.redPointArray[i].getChildByName('红点').active = false
// }
for (let i = 0; i < this.redPointArray.length; i++) {
let node = this.redPointArray[i]
if (node.name == '签到') {
let signList = User.getSignList()
let curSignDay = -1
for (let i = 0; i < 7; i++) {
if (signList[i] == 0) {
curSignDay = i
break
}
}
let isGetReward = signList[signList.length - 1]
let haveRed = false
if (isGetReward == 0 && curSignDay >= 0) {
haveRed = true
}
node.getChildByName('红点').active = haveRed
if (isGetReward == 1) {
node.active = false
}
} else if (node.name == '升级') {
// if (node.name == '签到') {
// let signList = User.getSignList()
// let curSignDay = -1
// for (let i = 0; i < 7; i++) {
// if (signList[i] == 0) {
// curSignDay = i
// break
// }
// }
// let isGetReward = signList[signList.length - 1]
// let haveRed = false
// if (isGetReward == 0 && curSignDay >= 0) {
// haveRed = true
// }
// node.getChildByName('红点').active = haveRed
// if (isGetReward == 1) {
// node.active = false
// }
// }
if (node.name == '升级') {
let haveRed = false
let myMoney = UserManager.getCurMoney()
let levelUpSpned = LevelUpManager.levelUpSpned()
// if (myMoney - levelUpSpned >= 0) {
// haveRed = true
// }
// node.getChildByName('红点').active = haveRed
if (myMoney - levelUpSpned >= 0) {
haveRed = true
node.getChildByName("手指箭头").active = true
} else {
node.getChildByName("手指箭头").active = false
}
node.getChildByName('红点').active = haveRed
} else if (node.name == '秘书') {
let haveRed = false
haveRed = MiShuManager.getMishuRedPoint()
node.getChildByName('红点').active = haveRed
} else if (node.name == '对战') {
// let haveRed = false
// haveRed = ChallengeManager.canChallengeProple()
// node.getChildByName('红点').active = haveRed
} else if (node.name == '房产') {
// let haveRed = false
// haveRed = FangChanManager.refreshHaveMoney()
// node.getChildByName('红点').active = haveRed
} else if (node.name == '摊位') {
if (haveRed) {
node.getChildByName("手指箭头").active = true
} else {
node.getChildByName("手指箭头").active = false
}
} else if (node.name == '早餐') {
let haveRed = false
haveRed = TanWeiManager.haveMoneyLockItem()
node.getChildByName('红点').active = haveRed
} else if (node.name == '食谱') {
haveRed = ZaoCanManager.getIsHaveUnLock()
// node.getChildByName('红点').active = haveRed
if (haveRed) {
node.getChildByName("手指箭头").active = true
} else {
node.getChildByName("手指箭头").active = false
}
} else if (node.name == '街道') {
let haveRed = false
haveRed = ShipuManager.haveMoneyLockItem()
node.getChildByName('红点').active = haveRed
} else if (node.name == '成就') {
// let onlineGameRewards = User.getOnlineGameReward()
// let onlineTime = [3,5,10,15,30]
// let haveRed = false
// for(let i = 0;i<onlineTime.length;i++){
// if(onlineGameRewards[i] == 0){
// let timeLimit = onlineTime[i]*60
// if(UserManager.onlineTime >= timeLimit){
// haveRed = true
// break
// }
// }
// }
let active = ChengJiuManager.isHaveRedPoint()
node.getChildByName('红点').active = active
if (active) {
let isNeedGuide = cc.sys.localStorage.getItem("成就引导") ?? 0
if (!isNeedGuide && TaskManager.getCurUnLockMainTaskId() >= MainTaskIdEnum.MainTask_505) {
if (!this.guideChengJiu) {
User.setFirstStepIndex(1002)
EventMgr.emitEvent_custom(ryw_Event.My_Guide)
this.guideChengJiu = true
}
}
haveRed = JieDaoManager.getIsHaveUnLock()
// node.getChildByName('红点').active = haveRed
if (haveRed) {
node.getChildByName("手指箭头").active = true
} else {
node.getChildByName("手指箭头").active = false
}
}
}
// else if (node.name == '对战') {
// // let haveRed = false
// // haveRed = ChallengeManager.canChallengeProple()
// // node.getChildByName('红点').active = haveRed
// } else if (node.name == '房产') {
// // let haveRed = false
// // haveRed = FangChanManager.refreshHaveMoney()
// // node.getChildByName('红点').active = haveRed
// } else if (node.name == '摊位') {
// let haveRed = false
// haveRed = TanWeiManager.haveMoneyLockItem()
// node.getChildByName('红点').active = haveRed
// } else if (node.name == '食谱') {
// let haveRed = false
// haveRed = ShipuManager.haveMoneyLockItem()
// node.getChildByName('红点').active = haveRed
// } else if (node.name == '成就') {
// // let onlineGameRewards = User.getOnlineGameReward()
// // let onlineTime = [3,5,10,15,30]
// // let haveRed = false
// // for(let i = 0;i<onlineTime.length;i++){
// // if(onlineGameRewards[i] == 0){
// // let timeLimit = onlineTime[i]*60
// // if(UserManager.onlineTime >= timeLimit){
// // haveRed = true
// // break
// // }
// // }
// // }
// let active = ChengJiuManager.isHaveRedPoint()
// node.getChildByName('红点').active = active
// if (active) {
// let isNeedGuide = cc.sys.localStorage.getItem("成就引导") ?? 0
// if (!isNeedGuide && TaskManager.getCurUnLockMainTaskId() >= MainTaskIdEnum.MainTask_505) {
// if (!this.guideChengJiu) {
// User.setFirstStepIndex(1002)
// EventMgr.emitEvent_custom(ryw_Event.My_Guide)
// this.guideChengJiu = true
// }
// }
// }
// }
}
}
@ -947,169 +956,36 @@ export default class MainHallBtn extends cc.Component {
let mainTaskInfo: any = TaskManager.getCurUnLockMainTaskInfo()
let mainId = mainTaskInfo.Id
let curFinishTask = User.getCurTaskId()
if (mainId == MainTaskIdEnum.MainTask_504) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_7)
} else if (mainId == MainTaskIdEnum.MainTask_507) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_9)
} else if (mainId == MainTaskIdEnum.MainTask_508) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_10)
} else if (mainId == MainTaskIdEnum.MainTask_510) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_11)
} else if (mainId == MainTaskIdEnum.MainTask_513) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_12)
} else if (curFinishTask[0] == MainTaskIdEnum.MainTask_514_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_13)
} else if (mainId == MainTaskIdEnum.MainTask_515) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_14)
} else if (curFinishTask[0] == MainTaskIdEnum.MainTask_516_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_15)
} else if (mainId == MainTaskIdEnum.MainTask_517) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_16)
} else if (curFinishTask[0] == MainTaskIdEnum.MainTask_518_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_17)
} else if (mainId == MainTaskIdEnum.MainTask_519) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_18)
} else if (mainId == MainTaskIdEnum.MainTask_520) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_19)
} else if (mainId == MainTaskIdEnum.MainTask_525) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_22)
} else if (mainId == MainTaskIdEnum.MainTask_527_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_24)
} else if (mainId == MainTaskIdEnum.MainTask_529) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_25)
} else if (mainId == MainTaskIdEnum.MainTask_531_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_26)
} else if (mainId == MainTaskIdEnum.MainTask_533) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_27)
} else if (mainId == MainTaskIdEnum.MainTask_534_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_28)
} else if (mainId == MainTaskIdEnum.MainTask_535) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_29)
} else if (mainId == MainTaskIdEnum.MainTask_538) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_30)
// } else if (mainId == MainTaskIdEnum.MainTask_541) {
} else if (mainId == MainTaskIdEnum.MainTask_541_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_32)
} else if (mainId == MainTaskIdEnum.MainTask_542) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
// PrefabManage.loadPrefabByType(GameType.DH_32)
} else if (mainId == MainTaskIdEnum.MainTask_543_2) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
// PrefabManage.loadPrefabByType(GameType.DH_33)
// this.jiuzhumeinv()
PrefabManage.loadPrefabByType(GameType.JiuZhuMeiNv)
} else if (mainId == MainTaskIdEnum.MainTask_544_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_34)
} else if (mainId == MainTaskIdEnum.MainTask_546) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_35)
} else if (mainId == MainTaskIdEnum.MainTask_547_1) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_36)
} else if (mainId == MainTaskIdEnum.MainTask_549) {
if (mainId == MainTaskIdEnum.MainTask_303 || mainId == MainTaskIdEnum.MainTask_401 || mainId == MainTaskIdEnum.MainTask_402) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_37)
} else if (mainId == MainTaskIdEnum.MainTask_550_1) {
PrefabManage.loadPrefabByType(GameType.Room2)
} else if (mainId == MainTaskIdEnum.MainTask_501) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_38)
} else if (mainId == MainTaskIdEnum.MainTask_551_1) {
PrefabManage.loadPrefabByType(GameType.DH_1)
} else if (mainId == MainTaskIdEnum.MainTask_503) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_39)
} else if (mainId == MainTaskIdEnum.MainTask_552) {
PrefabManage.loadPrefabByType(GameType.DH_5)
} else if (mainId == MainTaskIdEnum.MainTask_602) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
// PrefabManage.loadPrefabByType(GameType.DH_40)
} else if (mainId == MainTaskIdEnum.MainTask_553) {
PrefabManage.loadPrefabByType(GameType.GameStory4)
} else if (mainId == MainTaskIdEnum.MainTask_605 || mainId == MainTaskIdEnum.MainTask_606) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_41)
} else if (mainId == MainTaskIdEnum.MainTask_554_1) {
PrefabManage.loadPrefabByType(GameType.DH_3)
} else if (mainId == MainTaskIdEnum.MainTask_701 || mainId == MainTaskIdEnum.MainTask_702) {
Common5.stopMusic()
this.node.removeFromParent()
this.node.destroy()
PrefabManage.loadPrefabByType(GameType.DH_42)
PrefabManage.loadPrefabByType(GameType.DH_4)
} else {
PrefabManage.showTextTips("当前无剧情")
}
@ -1316,6 +1192,13 @@ export default class MainHallBtn extends cc.Component {
} else {
}
if (level == 10) {
User.setZhuanPanFree(true)
this.clickFanbeiBtnEvent()
} else if (level == 20) {
PrefabManage.loadPrefabByType(GameType.AddDesk)
}
// let jiachengGY = MiShuManager.getMishuAllClickInCome()
// let jiachengTw = ShipuManager.getAllClickInCome()
// let clickIncomeNum = User.getClickIncomeNum()
@ -1346,7 +1229,7 @@ export default class MainHallBtn extends cc.Component {
levelUpClickEvent() {
// PrefabManage.loadPrefabByType(GameType.PeopleLevelUp)
Common5.playRemoteAudioEffect('sound/diandiandian/点击升级')
// Common5.playRemoteAudioEffect('sound/diandiandian/点击升级')
let myMoney = UserManager.getCurMoney()
let levelUpSpned = LevelUpManager.levelUpSpned()
if (myMoney - levelUpSpned >= 0) {

@ -91,8 +91,8 @@ export default class MainScene extends cc.Component {
// this.getServerData()
// })
// return
// User.setFirstStepIndex(3)
// TaskManager.setCurTask(MainTaskIdEnum.MainTask_301)
// User.setFirstStepIndex(9)
// TaskManager.setCurTask(MainTaskIdEnum.MainTask_101)
// User.setCurGameLevelIndex(1)
// for (let i = 0; i < 18; i++) {
// MiShuManager.setMishuLock(i, true, false)

@ -10,8 +10,8 @@ import TaskManager, { MainTaskIdEnum } from "../JuQingChat/TaskManager";
let Config = [
{ level: 0, icon: 'res/图片1', isNeedAd: false, name: '解放路', descLab: '解放路', miaozhuan: 1, jiesuoMoney: 1, jiesuoBeiShu: 1 },
{ level: 1, icon: 'res/图片2', isNeedAd: false, name: '朝阳路', descLab: '朝阳路', miaozhuan: 2, jiesuoMoney: 2, jiesuoBeiShu: 2 },
{ level: 2, icon: 'res/图片3', isNeedAd: false, name: '太平路', descLab: '太平路', miaozhuan: 3, jiesuoMoney: 3, jiesuoBeiShu: 3 },
{ level: 1, icon: 'res/图片2', isNeedAd: false, name: '朝阳路', descLab: '朝阳路', miaozhuan: 2, jiesuoMoney: 20000000, jiesuoBeiShu: 3 },
{ level: 2, icon: 'res/图片3', isNeedAd: false, name: '太平路', descLab: '太平路', miaozhuan: 3, jiesuoMoney: 2000000000, jiesuoBeiShu: 6 },
// { level: 3, icon: 'res/图片2', isNeedAd: false, name: '劳动路', descLab: '劳动路', miaozhuan: 4, jiesuoMoney: 4, jiesuoBeiShu: 4 },
]
@ -63,4 +63,16 @@ export default class JieDaoManager {
}
return _config
}
public static getIsHaveUnLock(){
let isHave = false
let myMoney = User.getMoney()
for (let i = 0; i < Config.length; i++) {
if (myMoney >= Config[i].jiesuoMoney && this.getJieDaoLevel() < i) {
isHave = true
break
}
}
return isHave
}
}

@ -142,18 +142,18 @@ let jiesuoProConfig = [
export default class LevelUpManager {
//等级系数
public static levelArray = [
1.06, 1.06, 1.033, 1.035, 1.025, 1.042, 1.028, 1.028, 1.03, 1.032,
1.028, 1.04, 1.013, 1.02, 1.042, 1.01, 1.04, 1.04, 1.04, 1.04,
1.01, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047,
1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047,
1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047,
1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047, 1.047,
1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046,
1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046,
1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046,
1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046,
1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046,
1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046, 1.046,
]
//收益系数
public static incomeArray = [
1.015, 1.015, 1.012, 1.02, 1.013, 1.012, 1.022, 1.05, 1.012, 1.025,
1.015, 1.015, 1.025, 1.015, 1.015, 1.025, 1.015, 1.015, 1.016, 1.016,
1.025, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02,
@ -316,15 +316,15 @@ export default class LevelUpManager {
}
User.setMyLevel(level)
if (level >= 200 && level <= 300) {
for (let index = 200; index <= 300; index += 10) {
if (level == index) {
console.log(`等级提升-等级提升至${level}`)
Common5.ReportDY("inLevel", `等级提升-等级提升至${level}`)
break
}
}
}
// if (level >= 200 && level <= 300) {
// for (let index = 200; index <= 300; index += 10) {
// if (level == index) {
// console.log(`等级提升-等级提升至${level}`)
// Common5.ReportDY("inLevel", `等级提升-等级提升至${level}`)
// break
// }
// }
// }
EventMgr.emitEvent_custom(ryw_Event.levelUpChange)
return dataPro

@ -15,27 +15,27 @@ import TaskManager from "../JuQingChat/TaskManager"
//mishuType 0秘书1队友 ,lockLevel上个队友的级别需要多少级
//mishuType 0秘书1队友 ,lockLevel上个队友的级别需要多少级
let configData = [
{mishuId:0, addPercent:2.0, spineName:'右一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'云欣',selfLevel:0, selfLevelStr:'',lockLevel:0, lockLevelStr:'茜滢10级时解锁',lockMoney:500 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:1, addPercent:1.5, spineName:'左一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'茜滢',selfLevel:100, selfLevelStr:'主角100级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:1200 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:2, addPercent:2.5, spineName:'中间1',spineName2:'中间1', mishuLevel:0, mishuType:0, name:'媱安',selfLevel:150, selfLevelStr:'主角150级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:30000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:3, addPercent:3.0, spineName:'中间2',spineName2:'中间2', mishuLevel:0, mishuType:0, name:'诗涵',selfLevel:200, selfLevelStr:'主角200级时解锁',lockLevel:0, lockLevelStr:'媱安10级时解锁',lockMoney:300000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:4, addPercent:3.0, spineName:'中间4',spineName2:'中间4', mishuLevel:0, mishuType:0, name:'婉仪',selfLevel:300, selfLevelStr:'主角300级时解锁',lockLevel:0, lockLevelStr:'诗涵10级时解锁',lockMoney:2000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:5, addPercent:3.5, spineName:'中间3',spineName2:'中间3', mishuLevel:0, mishuType:0, name:'诺依',selfLevel:400, selfLevelStr:'主角400级时解锁',lockLevel:0, lockLevelStr:'婉仪10级时解锁',lockMoney:100000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:6, addPercent:4.0, spineName:'最后1',spineName2:'最后1', mishuLevel:0, mishuType:0, name:'晴萱',selfLevel:500, selfLevelStr:'主角500级时解锁',lockLevel:0, lockLevelStr:'诺依10级时解锁',lockMoney:1000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:7, addPercent:4.5, spineName:'最后2',spineName2:'最后2', mishuLevel:0, mishuType:0, name:'蕾蕾',selfLevel:600, selfLevelStr:'主角600级时解锁',lockLevel:0, lockLevelStr:'晴萱10级时解锁',lockMoney:10000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:8, addPercent:5.0, spineName:'最后6',spineName2:'最后6', mishuLevel:0, mishuType:0, name:'水萌',selfLevel:700, selfLevelStr:'主角700级时解锁',lockLevel:0, lockLevelStr:'蕾蕾10级时解锁',lockMoney:1000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:9, addPercent:6.0, spineName:'最后3',spineName2:'最后3', mishuLevel:0, mishuType:0, name:'可微',selfLevel:800, selfLevelStr:'主角800级时解锁',lockLevel:0, lockLevelStr:'水萌10级时解锁',lockMoney:10000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:10, addPercent:8.0, spineName:'最后4',spineName2:'最后4', mishuLevel:0, mishuType:0, name:'以南',selfLevel:900, selfLevelStr:'主角900级时解锁',lockLevel:0, lockLevelStr:'可微10级时解锁',lockMoney:100000000000000, isLock:true, isSign:false , isNeedTask:-1},
{mishuId:11, addPercent:10.0, spineName:'秘书2',spineName2:'秘书2', mishuLevel:0, mishuType:0, name:'悦澄',selfLevel:1000, selfLevelStr:'主角1000级时解锁',lockLevel:0, lockLevelStr:'以南10级时解锁',lockMoney:30000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:12, addPercent:15.0, spineName:'最后5',spineName2:'最后5', mishuLevel:0, mishuType:0, name:'夏彤',selfLevel:1100, selfLevelStr:'主角1100级时解锁',lockLevel:0, lockLevelStr:'悦澄10级时解锁',lockMoney:100000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:13, addPercent:50.0, spineName:'秘书4',spineName2:'秘书4', mishuLevel:0, mishuType:0, name:'紫琳',selfLevel:1200, selfLevelStr:'主角1200级时解锁',lockLevel:0, lockLevelStr:'夏彤10级时解锁',lockMoney:5000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:14, addPercent:100.0, spineName:'秘书6',spineName2:'秘书6', mishuLevel:0, mishuType:0, name:'羽婷',selfLevel:1300, selfLevelStr:'主角1300级时解锁',lockLevel:0, lockLevelStr:'紫琳10级时解锁',lockMoney:10000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:15, addPercent:150.0, spineName:'秘书5',spineName2:'秘书5', mishuLevel:0, mishuType:0, name:'梵音',selfLevel:1400, selfLevelStr:'主角1400级时解锁',lockLevel:0, lockLevelStr:'羽婷10级时解锁',lockMoney:100000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:16, addPercent:200.0, spineName:'秘书3',spineName2:'秘书3', mishuLevel:0, mishuType:0, name:'诗锦',selfLevel:1500, selfLevelStr:'主角1500级时解锁',lockLevel:0, lockLevelStr:'梵音10级时解锁',lockMoney:10000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:17, addPercent:300.0, spineName:'秘书1',spineName2:'秘书1', mishuLevel:0, mishuType:0, name:'绮罗',selfLevel:2000, selfLevelStr:'主角2000级时解锁',lockLevel:0, lockLevelStr:'诗锦10级时解锁',lockMoney:300000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:0, addPercent:2.0, spineName:'右一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'云欣',selfLevel:1, selfLevelStr:'',lockLevel:0, lockLevelStr:'茜滢10级时解锁',lockMoney:0 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:1, addPercent:1.5, spineName:'左一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'茜滢',selfLevel:50, selfLevelStr:'主角50级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:25500 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:2, addPercent:2.5, spineName:'中间1',spineName2:'中间1', mishuLevel:0, mishuType:0, name:'媱安',selfLevel:100, selfLevelStr:'主角100级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:60000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:3, addPercent:3.0, spineName:'中间2',spineName2:'中间2', mishuLevel:0, mishuType:0, name:'诗涵',selfLevel:150, selfLevelStr:'主角150级时解锁',lockLevel:0, lockLevelStr:'媱安10级时解锁',lockMoney:180000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:4, addPercent:3.0, spineName:'中间4',spineName2:'中间4', mishuLevel:0, mishuType:0, name:'婉仪',selfLevel:200, selfLevelStr:'主角200级时解锁',lockLevel:0, lockLevelStr:'诗涵10级时解锁',lockMoney:480000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:5, addPercent:3.5, spineName:'中间3',spineName2:'中间3', mishuLevel:0, mishuType:0, name:'诺依',selfLevel:250, selfLevelStr:'主角250级时解锁',lockLevel:0, lockLevelStr:'婉仪10级时解锁',lockMoney:1350000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:6, addPercent:4.0, spineName:'最后1',spineName2:'最后1', mishuLevel:0, mishuType:0, name:'晴萱',selfLevel:300, selfLevelStr:'主角300级时解锁',lockLevel:0, lockLevelStr:'诺依10级时解锁',lockMoney:3600000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:7, addPercent:4.5, spineName:'最后2',spineName2:'最后2', mishuLevel:0, mishuType:0, name:'蕾蕾',selfLevel:350, selfLevelStr:'主角350级时解锁',lockLevel:0, lockLevelStr:'晴萱10级时解锁',lockMoney:9600000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:8, addPercent:5.0, spineName:'最后6',spineName2:'最后6', mishuLevel:0, mishuType:0, name:'水萌',selfLevel:400, selfLevelStr:'主角400级时解锁',lockLevel:0, lockLevelStr:'蕾蕾10级时解锁',lockMoney:25800000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:9, addPercent:6.0, spineName:'最后3',spineName2:'最后3', mishuLevel:0, mishuType:0, name:'可微',selfLevel:450, selfLevelStr:'主角450级时解锁',lockLevel:0, lockLevelStr:'水萌10级时解锁',lockMoney:69000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:10, addPercent:8.0, spineName:'最后4',spineName2:'最后4', mishuLevel:0, mishuType:0, name:'以南',selfLevel:500, selfLevelStr:'主角500级时解锁',lockLevel:0, lockLevelStr:'可微10级时解锁',lockMoney:189000000, isLock:true, isSign:false , isNeedTask:-1},
{mishuId:11, addPercent:10.0, spineName:'秘书2',spineName2:'秘书2', mishuLevel:0, mishuType:0, name:'悦澄',selfLevel:550, selfLevelStr:'主角550级时解锁',lockLevel:0, lockLevelStr:'以南10级时解锁',lockMoney:510000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:12, addPercent:15.0, spineName:'最后5',spineName2:'最后5', mishuLevel:0, mishuType:0, name:'夏彤',selfLevel:600, selfLevelStr:'主角600级时解锁',lockLevel:0, lockLevelStr:'悦澄10级时解锁',lockMoney:1350000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:13, addPercent:50.0, spineName:'秘书4',spineName2:'秘书4', mishuLevel:0, mishuType:0, name:'紫琳',selfLevel:650, selfLevelStr:'主角650级时解锁',lockLevel:0, lockLevelStr:'夏彤10级时解锁',lockMoney:3600000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:14, addPercent:100.0, spineName:'秘书6',spineName2:'秘书6', mishuLevel:0, mishuType:0, name:'羽婷',selfLevel:700, selfLevelStr:'主角700级时解锁',lockLevel:0, lockLevelStr:'紫琳10级时解锁',lockMoney:9600000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:15, addPercent:150.0, spineName:'秘书5',spineName2:'秘书5', mishuLevel:0, mishuType:0, name:'梵音',selfLevel:750, selfLevelStr:'主角750级时解锁',lockLevel:0, lockLevelStr:'羽婷10级时解锁',lockMoney:26400000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:16, addPercent:200.0, spineName:'秘书3',spineName2:'秘书3', mishuLevel:0, mishuType:0, name:'诗锦',selfLevel:800, selfLevelStr:'主角800级时解锁',lockLevel:0, lockLevelStr:'梵音10级时解锁',lockMoney:69000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:17, addPercent:300.0, spineName:'秘书1',spineName2:'秘书1', mishuLevel:0, mishuType:0, name:'绮罗',selfLevel:850, selfLevelStr:'主角850级时解锁',lockLevel:0, lockLevelStr:'诗锦10级时解锁',lockMoney:192000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:18,addPercent:50.0, mishuLevel:0, spineName:'工人', spineName2:'animation', mishuType:1, name:'班的多',selfLevel:400, selfLevelStr:'主角400级时解锁',lockLevel:0, lockLevelStr:'主角400级时解锁',lockMoney:5000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:19,addPercent:800.0, mishuLevel:0, spineName:'环卫', spineName2:'animation', mishuType:1, name:'邵干净',selfLevel:600, selfLevelStr:'主角600级时解锁',lockLevel:20, lockLevelStr:'班的多20级时解锁',lockMoney:150000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:18,addPercent:50.0, mishuLevel:0, spineName:'工人', spineName2:'animation', mishuType:1, name:'班的多',selfLevel:1000, selfLevelStr:'主角1000级时解锁',lockLevel:0, lockLevelStr:'主角400级时解锁',lockMoney:5000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:19,addPercent:800.0, mishuLevel:0, spineName:'环卫', spineName2:'animation', mishuType:1, name:'邵干净',selfLevel:1200, selfLevelStr:'主角1200级时解锁',lockLevel:20, lockLevelStr:'班的多20级时解锁',lockMoney:150000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:20,addPercent:5000.0, mishuLevel:0, spineName:'外卖',spineName2:'animation', mishuType:1, name:'宋的快',selfLevel:700, selfLevelStr:'主角700级时解锁',lockLevel:20, lockLevelStr:'邵干净20级时解锁',lockMoney:15000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:21,addPercent:4500000.0, mishuLevel:0, spineName:'发传单',spineName2:'animation', mishuType:1, name:'花传单',selfLevel:1000, selfLevelStr:'主角1000级时解锁',lockLevel:20, lockLevelStr:'宋的快20级时解锁',lockMoney:25000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
{mishuId:22,addPercent:3000000000.0, mishuLevel:0, spineName:'保安',spineName2:'animation', mishuType:1, name:'保平安',selfLevel:1300, selfLevelStr:'主角1300级时解锁',lockLevel:20, lockLevelStr:'花传单20级时解锁',lockMoney:30000000000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
@ -63,10 +63,10 @@ let peixunShoiyi = [
export default class MiShuManager {
public static mishuShouyiStart = [
50,400,1000,15000,50000,
100000,1000000,6000000,10000000,30000000,
1000000000,6000000000,8000000000,10000000000,50000000000,
100000000000,150000000000000,80000000000000000,2700000,150000000,
211,568,1529,4116,11080,
29822,80269,216052,581523,1565221,
4212930,11339473,30521189,82150469,221115219,
595151078,1601901517,80000000000000000,2700000,150000000,
3000000000,20000000000000,170000000000000000,7000000000000000000000000,400000000000000,0,0,0,0,0,
]
//秘书加成等级 incomeNum每秒收益
@ -285,7 +285,7 @@ export default class MiShuManager {
let levelNum = curUserDate.mishuLevel
let lockMoney = this.mishuShouyiStart[mishuId]
let xishu = 1.1
let xishu = 1
shouyiNum = Math.pow(xishu, levelNum)
shouyiNum = Math.floor(lockMoney*shouyiNum)
@ -625,22 +625,22 @@ export default class MiShuManager {
if(isHaveRed){
return isHaveRed
}
let maxLevel = 100
//可以升级的
for(let i =0; i<configData.length; i++){
let userDate = this.getMishuUserDateById(configData[i].mishuId)
//let needLock = MiShuManager.getMishuIsLockById(configData[i].mishuId)
if(userDate.isLock==false && userDate.mishuLevel<maxLevel){
// let maxLevel = 100
// //可以升级的
// for(let i =0; i<configData.length; i++){
// let userDate = this.getMishuUserDateById(configData[i].mishuId)
// //let needLock = MiShuManager.getMishuIsLockById(configData[i].mishuId)
// if(userDate.isLock==false && userDate.mishuLevel<maxLevel){
let spend = this.getlevelUpMoneyById(configData[i].mishuId)
if(User.getMoney()-spend>=0){
isHaveRed = true
break
}
// let spend = this.getlevelUpMoneyById(configData[i].mishuId)
// if(User.getMoney()-spend>=0){
// isHaveRed = true
// break
// }
}
// }
}
// }
return isHaveRed
}

@ -29,23 +29,23 @@ let zaocanConfig = [
{ id: 3, type: 3, zaocan: '油条', needLevel: 1, jiacheng: 1 },
{ id: 4, type: 4, zaocan: '豆浆', needLevel: 1, jiacheng: 1 },
{ id: 5, type: 0, zaocan: '肉包', needLevel: 250, jiacheng: 0.3 },
{ id: 6, type: 1, zaocan: '茶叶蛋', needLevel: 300, jiacheng: 0.5 },
{ id: 7, type: 2, zaocan: '韭菜盒子', needLevel: 350, jiacheng: 0.7 },
{ id: 8, type: 3, zaocan: '麻球', needLevel: 400, jiacheng: 1 },
{ id: 9, type: 4, zaocan: '小米粥', needLevel: 450, jiacheng: 1.5 },
{ id: 10, type: 0, zaocan: '烧卖', needLevel: 500, jiacheng: 2 },
{ id: 11, type: 1, zaocan: '玉米', needLevel: 550, jiacheng: 3 },
{ id: 12, type: 2, zaocan: '葱油饼', needLevel: 600, jiacheng: 4 },
{ id: 13, type: 3, zaocan: '油饼', needLevel: 650, jiacheng: 5 },
{ id: 14, type: 4, zaocan: '燕麦粥', needLevel: 700, jiacheng: 7 },
{ id: 15, type: 0, zaocan: '红薯', needLevel: 750, jiacheng: 8 },
{ id: 16, type: 1, zaocan: '西兰花', needLevel: 800, jiacheng: 9 },
{ id: 17, type: 2, zaocan: '牛排', needLevel: 900, jiacheng: 10 },
{ id: 18, type: 3, zaocan: '鸡腿', needLevel: 1000, jiacheng: 12 },
{ id: 19, type: 4, zaocan: '咖啡', needLevel: 1200, jiacheng: 15 },
{ id: 5, type: 0, zaocan: '肉包', needLevel: 230, jiacheng: 0.1 },
{ id: 6, type: 1, zaocan: '茶叶蛋', needLevel: 250, jiacheng: 0.15 },
{ id: 7, type: 2, zaocan: '韭菜盒子', needLevel: 280, jiacheng: 0.2 },
{ id: 8, type: 3, zaocan: '麻球', needLevel: 300, jiacheng: 0.3 },
{ id: 9, type: 4, zaocan: '小米粥', needLevel: 330, jiacheng: 0.5 },
{ id: 10, type: 0, zaocan: '烧卖', needLevel: 350, jiacheng: 0.7 },
{ id: 11, type: 1, zaocan: '玉米', needLevel: 380, jiacheng: 1 },
{ id: 12, type: 2, zaocan: '葱油饼', needLevel: 400, jiacheng: 1.5 },
{ id: 13, type: 3, zaocan: '油饼', needLevel: 430, jiacheng: 2 },
{ id: 14, type: 4, zaocan: '燕麦粥', needLevel: 450, jiacheng: 3 },
{ id: 15, type: 0, zaocan: '红薯', needLevel: 500, jiacheng: 4 },
{ id: 16, type: 1, zaocan: '西兰花', needLevel: 650, jiacheng: 5 },
{ id: 17, type: 2, zaocan: '牛排', needLevel: 800, jiacheng: 6 },
{ id: 18, type: 3, zaocan: '鸡腿', needLevel: 900, jiacheng: 7 },
{ id: 19, type: 4, zaocan: '咖啡', needLevel: 1000, jiacheng: 10 },
]
let levelUpUnLockTanWei = [
@ -141,6 +141,18 @@ export default class ZaoCanManager {
return lockType
}
public static getIsHaveUnLock() {
let isHave = false
let getzaoCanArray = User.getzaoCanArray()
for (let i = 5; i < getzaoCanArray.length; i++) {
if (this.getIsLockById(i) == 1) {
isHave = true
break
}
}
return isHave
}
/**
*
*/
@ -162,10 +174,10 @@ export default class ZaoCanManager {
public static getDanJia() {
let level = User.getMyLevel()
let price = Math.ceil(35 * Math.pow(1.025, level - 1))
// let jiedaoJiacheng = JieDaoManager.getJieDaoBeiShu()
// return Math.ceil(level * jiedaoJiacheng)
return price
let price = Math.ceil(200 * Math.pow(1.02, level - 1))
let jiedaoJiacheng = JieDaoManager.getJieDaoBeiShu()
return Math.ceil(price * jiedaoJiacheng)
// return price
}
public static getLastDanJia() {
@ -191,7 +203,7 @@ export default class ZaoCanManager {
public static getEffectUrlByType(type) {
let name
let getzaoCanArray = User.getzaoCanArray()
let effectUrls = ['sound/蒸笼/放饺子', 'sound/煮锅/煮东西', 'sound/煎锅/煎东西', 'sound/油锅/油炸', 'sound/豆浆桶/盛东西']
let effectUrls = ['sound/蒸笼/放饺子', 'sound/煮锅/煮东西', 'sound/煎锅/煎东西', 'sound/油锅/油炸', 'sound/豆浆桶/豆浆桶抛物线']
for (let i = 0; i < getzaoCanArray.length; i++) {
if (zaocanConfig[i].type == type) {
name = effectUrls[i]

@ -60,6 +60,10 @@ export default class MishuItem extends cc.Component {
this.refreshShowBtn()
// this.refreshLevelBtn()
this.refreshGuyongBtn()
let mishuId = this.userDate.mishuId
let shouyi = MiShuManager.getIncomeById(mishuId)
this.miaozhuanLab.string = Common5.getNumberChangeHanzi(shouyi) + ''
}, this)
@ -121,13 +125,13 @@ export default class MishuItem extends cc.Component {
this.guyongNeedMoney = configDate.lockMoney
if (configDate.name == '茜滢') {
if (configDate.name == '云欣') {
this.guyongNeedMoney = 0
}
let labMoney = this.guyongBtn.getChildByName('labMoney').getComponent(cc.Label)
if (configDate.name == '茜滢') {
if (configDate.name == '云欣') {
labMoney.string = '免费'
} else {
labMoney.string = Common5.getNumberChangeHanzi(configDate.lockMoney) + ''

@ -75,11 +75,11 @@ export default class ZaoCanDian extends cc.Component {
m_NpcIndexValue
chatConfig = [
{ effectUrl: 'DH/MainHall/sound/老板你终于来了,顾客都在排队等着买早餐呢!', delayTime: 3.54, str: '老板你终于来了,顾客都在排队等着买早餐呢!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/先把锅具摆上吧!', delayTime: 1.31, str: '先把锅具摆上吧!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/客人都等着急了', delayTime: 1.32, str: '客人都等着急了', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/油条出锅了,快点击油条递给客人吧!', delayTime: 2.85, str: '油条出锅了,快点击油条递给客人吧!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/接下来我们来升级摊位,能提升早餐售卖单价哦!', delayTime: 3.63, str: '接下来我们来升级摊位,能提升早餐售卖单价哦!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/老板你终于来了,顾客都在排队等着买早餐呢!', delayTime: 4, str: '老板你终于来了,顾客都在排队等着买早餐呢!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/先把锅具摆上吧!', delayTime: 1.5, str: '先把锅具摆上吧!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/客人都等着急了', delayTime: 1.5, str: '客人都等着急了', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/油条出锅了,快点击油条递给客人吧!', delayTime: 3, str: '油条出锅了,快点击油条递给客人吧!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/接下来我们来升级摊位,能提升早餐售卖单价哦!', delayTime: 4, str: '接下来我们来升级摊位,能提升早餐售卖单价哦!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/招聘员工可以增加摊位的秒赚收益哦!', delayTime: 2.8, str: '招聘员工可以增加摊位的秒赚收益哦!', posi: '员工对话' },
{ effectUrl: 'DH/MainHall/sound/好啦,老板你开始营业赚钱吧!', delayTime: 2.31, str: '好啦,老板你开始营业赚钱吧!', posi: '员工对话' },
]
@ -87,12 +87,14 @@ export default class ZaoCanDian extends cc.Component {
clickTieHeNum: any = 0;
clickTimeOutEvent: number;
audioId;
skillSchedule: any;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start() {
Common5.playRemoteAudioMusic("bgm/背景bgm", true)
this.updateMainTask()
EventMgr.onEvent_custom(ryw_Event.updateMainTask, () => {
this.updateMainTask()
@ -133,6 +135,9 @@ export default class ZaoCanDian extends cc.Component {
let name = ZaoCanManager.getCurNameByType(i)
if (unlocks.includes(names[i])) {
this.ZaoCanArr[i] = name
if (!tanwei.active) {
tanwei.getChildByName("手指箭头").active = true
}
tanwei.active = true
} else {
this.ZaoCanArr[i] = ''
@ -288,12 +293,6 @@ export default class ZaoCanDian extends cc.Component {
onTouchZaoCan(event, custom) {
custom = Number(custom) //对应ZaoCanManager的zaocanConfig下标
//摊位动画正在运行直接返回
if (this.TanWeiSpineState[custom]) {
return
}
let zaoCanStr = ZaoCanManager.getCurNameByType(custom)
let _npc = this.getNpcByNeedStr(zaoCanStr)
//摊位节点名字
let names = ['馒头', '鸡蛋', '饺子', '油条', '豆浆']
@ -303,6 +302,20 @@ export default class ZaoCanDian extends cc.Component {
let animation_names2 = ['', '', '静止', '静止放', '']
let tanwei = this.node.getChildByName("桌子").getChildByName(names[custom] + "摊位")
tanwei.getChildByName("手指箭头").active = false
let zaoCanStr = ZaoCanManager.getCurNameByType(custom)
let _npc = this.getNpcByNeedStr(zaoCanStr)
//摊位动画正在运行直接返回
if (this.TanWeiSpineState[custom]) {
if (_npc) {
let TrackEntry: sp.spine.TrackEntry = tanwei.getComponent(sp.Skeleton).getCurrent(0)
TrackEntry.animationStart = TrackEntry.animationEnd
}
return
}
let shengyuNum = 0
let _child
let children = this.fly_zaocan_parent.getChildByName(names[custom] + "摊位").children
@ -382,17 +395,21 @@ export default class ZaoCanDian extends cc.Component {
// cc.tween().to(time, { position: _position }),
cc.tween().call(() => {
UserManager.addMoney(ZaoCanManager.getDanJia(), child, null, this.node.parent.parent.getChildByName("prefabMoneyNode"))
let com = _npc.getComponent(ZaoCanDianNpc)
com.setNeedNumLabel()
if (com.getNeedNum() == 0) {
this.npc_Position_States[com.getStateIndex()].isHaveNpc = false
com.getZaoCanAfter()
for (let j = this.npcNodes.length - 1; j >= 0; j--) {
if (this.npcNodes[j] === com.node) {
this.npcNodes.splice(j, 1)
if (cc.isValid(_npc)) {
let com = _npc.getComponent(ZaoCanDianNpc)
com.setNeedNumLabel()
com.runMoney(ZaoCanManager.getDanJia())
let num = com.getNeedNumLabel()
if (num == 0) {
this.npc_Position_States[com.getStateIndex()].isHaveNpc = false
com.getZaoCanAfter()
for (let j = this.npcNodes.length - 1; j >= 0; j--) {
if (this.npcNodes[j] === com.node) {
this.npcNodes.splice(j, 1)
}
}
com.setNeedNum(-1) //避免重复点击导致进多次这个判断..多次会一直重置isHaveNpc
}
com.setNeedNum(-1) //避免重复点击导致进多次这个判断..多次会一直重置isHaveNpc
}
child.removeFromParent()
child.destroy()
@ -412,6 +429,7 @@ export default class ZaoCanDian extends cc.Component {
tanweiSpine.setAnimation(0, `${zaoCanStr}`, false)
tanweiSpine.setCompleteListener(() => {
tanweiSpine.setCompleteListener(null)
tanweiSpine.setAnimation(0, `${zaoCanStr}`, false)
this.TanWeiSpineState[custom] = false
let _child = this.fly_zaocan_parent.getChildByName(names[custom] + "摊位").children[0]
let child = cc.instantiate(_child)
@ -431,19 +449,23 @@ export default class ZaoCanDian extends cc.Component {
// cc.tween().to(time, { position: _position }),
cc.tween().call(() => {
UserManager.addMoney(ZaoCanManager.getDanJia(), child, null, this.node.parent.parent.getChildByName("prefabMoneyNode"))
let com = _npc.getComponent(ZaoCanDianNpc)
com.setNeedNumLabel()
if (com.getNeedNum() == 0) {
this.npc_Position_States[com.getStateIndex()].isHaveNpc = false
com.getZaoCanAfter()
for (let j = this.npcNodes.length - 1; j >= 0; j--) {
if (this.npcNodes[j] === com.node) {
this.npcNodes.splice(j, 1)
if (cc.isValid(_npc)) {
let com = _npc.getComponent(ZaoCanDianNpc)
com.setNeedNumLabel()
com.runMoney(ZaoCanManager.getDanJia())
let num = com.getNeedNumLabel()
if (num == 0) {
this.npc_Position_States[com.getStateIndex()].isHaveNpc = false
com.getZaoCanAfter()
for (let j = this.npcNodes.length - 1; j >= 0; j--) {
if (this.npcNodes[j] === com.node) {
this.npcNodes.splice(j, 1)
}
}
com.setNeedNum(-1) //避免重复点击导致进多次这个判断..多次会一直重置isHaveNpc
}
com.setNeedNum(-1) //避免重复点击导致进多次这个判断..多次会一直重置isHaveNpc
child.removeFromParent()
}
child.removeFromParent()
child.destroy()
})
)
@ -572,13 +594,13 @@ export default class ZaoCanDian extends cc.Component {
let index = User.getFirstStepIndex()
if (config && config.wanFaRuKouTip && config.wanFaRuKouTip.includes('rk_chuZuChe')) {
this.car.node.active = true
this.car.setAnimation(0, "空车", false)
this.car.node.setPosition(cc.v3(0, this.car.node.position.y, 0))
} else {
this.car.node.active = false
}
// if (config && config.wanFaRuKouTip && config.wanFaRuKouTip.includes('rk_chuZuChe')) {
// this.car.node.active = true
// this.car.setAnimation(0, "空车", false)
// this.car.node.setPosition(cc.v3(0, this.car.node.position.y, 0))
// } else {
// this.car.node.active = false
// }
}
onTouchTieHe() {
@ -627,14 +649,17 @@ export default class ZaoCanDian extends cc.Component {
if (chat.effectUrl && chat.effectUrl.length > 0) {
Common5.playRemoteAudioEffect(chat.effectUrl);
}
this.scheduleOnce(() => {
if (isNotHide) {
this.skillSchedule = this.yuanGongChatFunc.bind(this, callback, isNotHide)
this.scheduleOnce(this.skillSchedule, chat.delayTime)
}
} else {
this.node.getChildByName("员工对话框").active = false
}
callback && callback()
}, chat.delayTime)
yuanGongChatFunc(callback?, isNotHide?) {
if (isNotHide) {
} else {
this.node.getChildByName("员工对话框").active = false
}
callback && callback()
}
onTouchStartBaiTan() {
@ -653,10 +678,23 @@ export default class ZaoCanDian extends cc.Component {
}, 2)
}
onTouchTiaoGuoYinDao() {
this.node.getChildByName("跳过引导").active = false
this.unschedule(this.skillSchedule)
this.scheduleOnce(() => {
User.setFirstStepIndex(8)
this.guideStep()
this.node.getChildByName("guideParent").removeAllChildren()
this.node.getChildByName("开始摆摊").active = false
this.node.parent.parent.getChildByName('UINode').active = true
})
}
guideStep() {
let index = User.getFirstStepIndex()
if (index == 3 && !this.isJoin) { //早餐摊引导
this.isJoin = true
this.node.getChildByName("跳过引导").active = true
let names = ['馒头', '鸡蛋', '饺子', '油条', '豆浆']
for (let i = 0; i < names.length; i++) {
let tanwei = this.node.getChildByName("桌子").getChildByName(names[i] + "摊位")
@ -696,12 +734,13 @@ export default class ZaoCanDian extends cc.Component {
}
this.refreshZaoCan()
})
this.node.getChildByName("跳过引导").active = false
User.setFirstStepIndex(9)
}
}
guideView(nodeArray, opacity = -1) {
PrefabManage.loadPrefabByType(GameType.GuideMskNode, this.node, (prefab) => {
PrefabManage.loadPrefabByType(GameType.GuideMskNode, this.node.getChildByName("guideParent"), (prefab) => {
// prefab.zIndex = 199
let guideNodeArray = nodeArray
let firstNode = guideNodeArray.shift()

@ -148,7 +148,13 @@ export default class ZaoCanDianNpc extends cc.Component {
}
setNeedNumLabel() {
this.numLabel.string = `${this.getNeedNum()}`
//为什么不用this.needNum去设置
// 这里是因为判断npc需要的时候this.needNum已经为0了,但是物品移动的动效还没播完,会导致npc都走了,还有物品往他头上飞,其实每进一次这个函数就是物品移过去一个了
this.numLabel.string = `${Number(this.numLabel.string) - 1}`
}
getNeedNumLabel() {
return Number(this.numLabel.string)
}
getNeedNum() {
@ -207,5 +213,22 @@ export default class ZaoCanDianNpc extends cc.Component {
return this.needNode.parent.convertToWorldSpaceAR(this.needNode.getPosition())
}
runMoney(money) {
let label = cc.instantiate(this.node.getChildByName("money"))
label.active = true
label.parent = this.node
if (money && money > 0) {
label.getComponent(cc.Label).string = "+" + Common5.getNumberChangeHanzi(money, '1', 1)
}
cc.tween(label)
.delay(0.2)
.by(1, { y: 20, opacity: 0 })
.call(() => {
label.removeFromParent()
label.destroy()
})
.start()
}
// update (dt) {}
}

@ -89,9 +89,16 @@ export default class ZaoCanDianYeWuitemNode extends cc.Component {
onTouchUnLock() {
let lockType = ZaoCanManager.getIsLockById(this.config.id)
if (this.config.id > 0) {
//要按顺序解锁,前面那个没解锁不能解锁当前这个
let lastLockType = ZaoCanManager.getIsLockById(this.config.id - 1)
if (lastLockType != 2) {
PrefabManage.showTextTips("请先解锁前面早点")
return
}
}
//是不是等待解锁的状态
if (lockType == 1) {
+
PrefabManage.loadPrefabByType(GameType.ZaoCanDianUnLock, null, (node) => {
node.getComponent(ZaoCanDianUnLock).setViewData(this.config.id)

File diff suppressed because it is too large Load Diff

@ -28,16 +28,19 @@
},
{
"__id__": 17
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "d4C8g4+GBPDry5CN9aG/lE",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
386.224,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "89tL/E4tRJOoW8gQrI5Wdk",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "d3vXrbdvNCUKFtzO26FFQx",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
409.983,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "38pCDwIcpHHaDucAI+FV3z",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "b2sVuuXQpHCZ2gM4pHBVtn",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
412.246,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "20vBpiK1lMaJ4u5+UVaLGi",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "e06aY3+A1I84u64roQXCGN",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
424.544,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0bwxnepZBAG4eXux15DABd",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "fa4GUzAW9IqahQTbIwjrkG",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
424.544,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "4bVGHcKl5Hqa4TOJjmElOD",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "21D8Em6pdENZs7JUbtHEby",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
457.682,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "22RosZu2xKYrTLstLQyOBO",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "2clSt1DTpNJYi3IgJy17+I",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
439.084,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e5Hx/ErJ1G/7z99BUdUNWL",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -28,16 +28,19 @@
},
{
"__id__": 23
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 33
}
],
"_prefab": {
"__id__": 30
"__id__": 34
},
"_opacity": 255,
"_color": {
@ -1079,6 +1082,135 @@
"fileId": "2eQTos6clGAJT3zfZDiie+",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "money",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67.1,
"height": 33.3
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
424.544,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 25,
"_lineHeight": 25,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 0.9,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "40yWRDoaZG17ssQD9jdMCj",
"sync": false
},
{
"__type__": "ca6c550VU9ADK+mM1un4SHv",
"_name": "",

@ -1755,8 +1755,8 @@
0,
0,
1,
1,
1,
1.4,
1.4,
1
]
},
@ -1813,8 +1813,8 @@
"__id__": 42
},
"_enabled": true,
"scaleStart": 1,
"scaleEnd": 1.1,
"scaleStart": 1.4,
"scaleEnd": 1.5,
"time": 0.5,
"_id": ""
},
@ -1940,7 +1940,7 @@
"ctor": "Float64Array",
"array": [
0,
0.711,
-39.247,
0,
0,
0,
@ -2373,7 +2373,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "93616b08-4549-4225-9167-a98f0585de10"
"__uuid__": "c33b1e53-2b72-4532-853f-8060f5699972"
},
"_type": 0,
"_sizeMode": 1,

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "9dfd4fdc-3018-438a-b042-954003e40ca6",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 128,
"height": 128,
"platformSettings": {},
"subMetas": {
"未解锁遮罩 (2)": {
"ver": "1.0.6",
"uuid": "c33b1e53-2b72-4532-853f-8060f5699972",
"importer": "sprite-frame",
"rawTextureUuid": "9dfd4fdc-3018-438a-b042-954003e40ca6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 128,
"height": 128,
"rawWidth": 128,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

@ -3,6 +3,6 @@
"uuid": "ea4c3d5b-21d3-4c62-b311-155abc90f164",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 3.056327,
"duration": 2.481633,
"subMetas": {}
}

@ -3,6 +3,6 @@
"uuid": "a1f2f8b5-b924-45a4-abfb-94613e30b142",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 3.578776,
"duration": 2.45551,
"subMetas": {}
}

@ -3,6 +3,6 @@
"uuid": "831cc5b4-adf7-4607-b338-5355abac8398",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 3.056327,
"duration": 2.586122,
"subMetas": {}
}

@ -0,0 +1,8 @@
{
"ver": "2.0.3",
"uuid": "5e2a5e67-8f06-47bc-b74c-03de299accd2",
"importer": "audio-clip",
"downloadMode": 0,
"duration": 2.377143,
"subMetas": {}
}

Binary file not shown.
Loading…
Cancel
Save