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
93ff45fb
Commit
93ff45fb
authored
Jun 30, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改钻石问题
parent
2af1b224
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
CarUIControl.cs
Assets/Game/Main/Scripts/View/CarUIControl.cs
+1
-1
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+6
-2
No files found.
Assets/Game/Main/Scripts/View/CarUIControl.cs
View file @
93ff45fb
...
...
@@ -355,7 +355,7 @@ public class CarUIControl : MonoBehaviour
if
(
progressBarImg
!=
null
)
{
progressBarImg
.
fillAmount
=
1
-
(
currentCarTime
/
(
float
)
totalTime
);
fruitTimeTv
.
text
=
((
1
-
(
currentCarTime
/
(
float
)
totalTime
))
*
100
).
ToString
()
+
"%"
;
fruitTimeTv
.
text
=
((
1
-
(
currentCarTime
/
(
float
)
totalTime
))
*
100
).
ToString
(
"f0"
)
+
"%"
;
}
yield
return
new
WaitForSecondsRealtime
(
1f
);
if
(
currentCarTime
<=
0
)
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
93ff45fb
...
...
@@ -476,6 +476,7 @@ public class DialogControl : MonoBehaviour
}
}
private
int
DiamondplayNum
;
private
int
DiamondRewardNum
;
//展示获取钻石弹窗
public
void
showDiamondDialog
()
{
...
...
@@ -492,6 +493,7 @@ public class DialogControl : MonoBehaviour
HttpTool
.
Instance
.
_Get
(
"app/v2/cscmnq/diamond_by_video_status"
,
parm
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
DiamondplayNum
=
bean
.
playNum
;
DiamondRewardNum
=
bean
.
rewardDiamondNum
;
tv_diamond_num
.
text
=
bean
.
rewardDiamondNum
.
ToString
();
tv_diamond_times
.
text
=
"每天0点重置视频次数(剩余"
+
DiamondplayNum
+
"次)"
;
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
...
...
@@ -540,9 +542,10 @@ public class DialogControl : MonoBehaviour
HttpTool
.
Instance
.
_Get
(
"app/v2/cscmnq/diamond_by_video_status"
,
null
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
DiamondplayNum
=
bean
.
playNum
;
DiamondRewardNum
=
bean
.
rewardDiamondNum
;
if
(
DiamondplayNum
>
0
)
{
rdp
.
Show
(
bean
.
play
Num
);
rdp
.
Show
(
bean
.
rewardDiamond
Num
);
}
else
{
...
...
@@ -1238,7 +1241,7 @@ public class DialogControl : MonoBehaviour
HttpTool
.
Instance
.
_Post
(
"app/v2/cscmnq/receive_diamond_by_video"
,
null
,
new
Action
<
RewardData
>((
bean
)
=>
{
//Lee
showReceiveDiamondDialog
(
Diamond
play
Num
.
ToString
());
showReceiveDiamondDialog
(
Diamond
Reward
Num
.
ToString
());
rdp
.
Hide
();
// EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA);
...
...
@@ -1248,6 +1251,7 @@ public class DialogControl : MonoBehaviour
}));
}
rdp
.
Hide
();
closeDiamondDialog
();
}));
}
...
...
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