Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
00fdfb04
Commit
00fdfb04
authored
Jul 08, 2021
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
双倍领取逻辑完善
parent
3af2b5d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
240 additions
and
175 deletions
+240
-175
WithdrawEveryDay.meta
Assets/Game/Main/Resource/ui/WithdrawEveryDay.meta
+8
-0
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+161
-157
BoxReceiveBean.cs
Assets/Game/Main/Scripts/Model/BoxReceiveBean.cs
+1
-0
DoubleReceiveBean.cs
Assets/Game/Main/Scripts/Model/DoubleReceiveBean.cs
+6
-0
DoubleReceiveBean.cs.meta
Assets/Game/Main/Scripts/Model/DoubleReceiveBean.cs.meta
+11
-0
Guide.cs
Assets/Game/Main/Scripts/Utils/Guide.cs
+1
-0
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+39
-5
packages-lock.json
Packages/packages-lock.json
+13
-13
No files found.
Assets/Game/Main/Resource/ui/WithdrawEveryDay.meta
0 → 100644
View file @
00fdfb04
fileFormatVersion: 2
guid: c8769dd604faf4fb9b727d8d2fe57934
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
00fdfb04
This diff is collapsed.
Click to expand it.
Assets/Game/Main/Scripts/Model/BoxReceiveBean.cs
View file @
00fdfb04
...
...
@@ -6,4 +6,5 @@ public class BoxReceiveBean
public
int
currencyType
;
public
double
cash
;
public
string
currencyTypeEnum
;
public
string
sid
;
}
Assets/Game/Main/Scripts/Model/DoubleReceiveBean.cs
0 → 100644
View file @
00fdfb04
using
System
;
public
class
DoubleReceiveBean
{
public
int
recode
;
public
string
msg
;
}
Assets/Game/Main/Scripts/Model/DoubleReceiveBean.cs.meta
0 → 100644
View file @
00fdfb04
fileFormatVersion: 2
guid: 6dce42d57e906427f9aa1f888d8d75d3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/Utils/Guide.cs
View file @
00fdfb04
...
...
@@ -87,6 +87,7 @@ public class Guide : MonoBehaviour
public
void
showGuide
(
bool
isUser
)
{
//isUser = true;
if
(
isStartShow
)
{
return
;
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
00fdfb04
...
...
@@ -230,7 +230,7 @@ public class DialogControl : MonoBehaviour
{
if
(
cb
)
{
HttpTool
.
Instance
.
_Post
(
"app/v1/game/fkqcw/doubling/incr_time_by_video"
,
parm
,
new
Action
<
VideoStatusBean
>((
bean
)
=>
HttpTool
.
Instance
.
_Post
(
"app/v1/game/fkqcw/doubling/incr_time_by_video"
,
null
,
new
Action
<
VideoStatusBean
>((
bean
)
=>
{
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_CAR_LIST_DATA
);
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
...
...
@@ -458,7 +458,7 @@ public class DialogControl : MonoBehaviour
AudioUtils
.
ins
.
PlayBtnAudio
();
if
(
PlayerDataControl
.
Instance
.
pigStatus
==
1
)
{
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/reward/receive_piggy_bank"
,
parm
,
new
Action
<
RewardData
>((
bean
)
=>
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/reward/receive_piggy_bank"
,
null
,
new
Action
<
RewardData
>((
bean
)
=>
{
closePigBankDialog
();
//showHappyGetDialog(PlayerDataControl.Instance.pigNum + "元");
...
...
@@ -490,7 +490,7 @@ public class DialogControl : MonoBehaviour
Invoke
(
"moveDiamondDialog"
,
1f
);
//#endif
HttpTool
.
Instance
.
_Get
(
"app/v2/cscmnq/diamond_by_video_status"
,
parm
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v2/cscmnq/diamond_by_video_status"
,
null
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
DiamondplayNum
=
bean
.
playNum
;
DiamondRewardNum
=
bean
.
rewardDiamondNum
;
...
...
@@ -745,6 +745,7 @@ public class DialogControl : MonoBehaviour
AudioUtils
.
ins
.
PlayBtnAudio
();
getRedPackDialog
.
SetActive
(
false
);
}
private
string
sid
;
public
void
getVideoReward
(
int
type
)
{
AudioUtils
.
ins
.
PlayBtnAudio
();
...
...
@@ -763,7 +764,8 @@ public class DialogControl : MonoBehaviour
if
(
bean
.
currencyType
==
10
)
{
//
showHappyGetDialog
(
bean
.
cash
.
ToString
());
sid
=
bean
.
sid
;
showNewHappyGetDialog
(
bean
.
cash
.
ToString
());
}
else
{
...
...
@@ -840,7 +842,38 @@ public class DialogControl : MonoBehaviour
//关闭带双倍领取的开心收下弹窗
public
void
closeNewHappyGetDialog
()
{
AudioUtils
.
ins
.
PlayBtnAudio
();
newhappygetDialog
.
SetActive
(
false
);
EventCenter
.
Broadcast
(
MyEventType
.
FlyHongbao
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshHomeInfo
);
}
//双倍领取
public
void
doubleGetReceive
()
{
AudioUtils
.
ins
.
PlayBtnAudio
();
newhappygetDialog
.
SetActive
(
false
);
parm
.
Clear
();
parm
[
"sid"
]
=
sid
;
AdUtils
.
PlayRewardAd
(
"double_reward"
,
new
Action
<
bool
>((
cb
)
=>
{
if
(
cb
)
{
HttpTool
.
Instance
.
_Post
(
"app/v3/common/award/multiple"
,
parm
,
new
Action
<
DoubleReceiveBean
>((
bean
)
=>
{
if
(
bean
.
recode
==
1
)
{
EventCenter
.
Broadcast
(
MyEventType
.
FlyHongbao
);
EventCenter
.
Broadcast
(
MyEventType
.
RefreshHomeInfo
);
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
Debug
.
unityLogger
.
Log
(
"双倍奖励 请求失败"
+
code
+
errMsg
);
}));
}
}));
}
//展示钻石奖励弹窗
...
...
@@ -977,7 +1010,8 @@ public class DialogControl : MonoBehaviour
if
(
bean
.
currencyType
==
10
)
{
//
showHappyGetDialog
(
bean
.
cash
.
ToString
());
sid
=
bean
.
sid
;
showNewHappyGetDialog
(
bean
.
cash
.
ToString
());
}
else
{
...
...
Packages/packages-lock.json
View file @
00fdfb04
...
...
@@ -19,7 +19,7 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.analytics"
:
{
"version"
:
"3.3.5"
,
...
...
@@ -28,21 +28,21 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.collab-proxy"
:
{
"version"
:
"1.2.16"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ext.nunit"
:
{
"version"
:
"1.0.6"
,
"depth"
:
1
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ide.rider"
:
{
"version"
:
"1.1.4"
,
...
...
@@ -51,14 +51,14 @@
"dependencies"
:
{
"com.unity.test-framework"
:
"1.1.1"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ide.vscode"
:
{
"version"
:
"1.2.3"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.multiplayer-hlapi"
:
{
"version"
:
"1.0.8"
,
...
...
@@ -67,7 +67,7 @@
"dependencies"
:
{
"nuget.mono-cecil"
:
"0.1.6-preview"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.purchasing"
:
{
"version"
:
"2.2.1"
,
...
...
@@ -76,7 +76,7 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.test-framework"
:
{
"version"
:
"1.1.20"
,
...
...
@@ -87,7 +87,7 @@
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.jsonserialize"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.textmeshpro"
:
{
"version"
:
"2.1.1"
,
...
...
@@ -96,14 +96,14 @@
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.timeline"
:
{
"version"
:
"1.2.17"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.ugui"
:
{
"version"
:
"1.0.0"
,
...
...
@@ -122,14 +122,14 @@
"com.unity.modules.vr"
:
"1.0.0"
,
"com.unity.modules.xr"
:
"1.0.0"
},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"nuget.mono-cecil"
:
{
"version"
:
"0.1.6-preview"
,
"depth"
:
1
,
"source"
:
"registry"
,
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
om
"
"url"
:
"https://packages.unity.c
n
"
},
"com.unity.modules.ai"
:
{
"version"
:
"1.0.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment