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
9d32bdcf
Commit
9d32bdcf
authored
Jun 30, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7ccaa747
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
645 deletions
+23
-645
AdSDK.meta
Assets/AdSDK.meta
+0
-8
InitProject.meta
Assets/AdSDK/InitProject.meta
+0
-8
InitScene.unity
Assets/AdSDK/InitProject/InitScene.unity
+0
-600
InitScene.unity.meta
Assets/AdSDK/InitProject/InitScene.unity.meta
+0
-7
HomePresenter.cs
Assets/Game/Main/Scripts/Presenter/HomePresenter.cs
+1
-1
AdUtils.cs
Assets/Game/Main/Scripts/Utils/AdUtils.cs
+1
-1
CarUIControl.cs
Assets/Game/Main/Scripts/View/CarUIControl.cs
+19
-18
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+2
-2
No files found.
Assets/AdSDK.meta
deleted
100644 → 0
View file @
7ccaa747
fileFormatVersion: 2
guid: 3bdf81920b9ea8e46abd100e083eefe7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/InitProject.meta
deleted
100644 → 0
View file @
7ccaa747
fileFormatVersion: 2
guid: 699ec949cb5539f48b04345cd60af6dd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/InitProject/InitScene.unity
deleted
100644 → 0
View file @
7ccaa747
This diff is collapsed.
Click to expand it.
Assets/AdSDK/InitProject/InitScene.unity.meta
deleted
100644 → 0
View file @
7ccaa747
fileFormatVersion: 2
guid: b0fdeff412c9a1f4e82faa8ef0aeb063
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/Presenter/HomePresenter.cs
View file @
9d32bdcf
...
...
@@ -58,7 +58,7 @@ public class HomePresenter : HomeContract.Presenter
public
void
GetHomeInfo
()
{
Debug
.
Log
(
"请求主页信息接口"
);
HttpTool
.
Instance
.
_Get
(
"app/v
1/wdlc
/home_info"
,
null
,
new
Action
<
HomeInfoBean
>((
bean
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v
2/cscmnq
/home_info"
,
null
,
new
Action
<
HomeInfoBean
>((
bean
)
=>
{
PlayerDataControl
.
Instance
.
VideoUnlockCarID
=
bean
.
unlockLandByVideoId
;
PlayerDataControl
.
Instance
.
diamondByVideoRewardNum
=
bean
.
diamondByVideoRewardNum
;
...
...
Assets/Game/Main/Scripts/Utils/AdUtils.cs
View file @
9d32bdcf
...
...
@@ -141,7 +141,7 @@ public class AdUtils
{
EventUtils
.
OnEvent
(
"reward_reduceAllTime"
,
"激励视频_及时雨"
);
}
else
if
(
actionName
.
Equals
(
"diamond_reward"
))
else
if
(
actionName
.
Equals
(
"diamond_reward
_v2
"
))
{
EventUtils
.
OnEvent
(
"reward_addDiamond"
,
"激励视频_领取钻石"
);
}
...
...
Assets/Game/Main/Scripts/View/CarUIControl.cs
View file @
9d32bdcf
...
...
@@ -325,24 +325,24 @@ public class CarUIControl : MonoBehaviour
public
Text
fruitTimeTv
;
public
void
setTime
(
LandListData
entity
)
{
//
if (entity.landPlantData == null)
//
{
//
return;
//
}
//
stopTime = (int)entity.landPlantData.appearWormCountdownSecond;
//
totalTime = (int)entity.landPlantData.growthAllSecond;
//
currentCarTime = (int)entity.landPlantData.growthLastSecond;
//
//
设置暂停状态
//
setPauseTime(currentCarTime);
//
//
关闭上一次倒计时
//
if (timeControl != null)
//
{
//
StopCoroutine(timeControl);
//
}
//
if (currentCarTime > 0)
//
{
//
timeControl = StartCoroutine(timeConteller());
//
}
if
(
entity
.
landPlantData
==
null
)
{
return
;
}
stopTime
=
(
int
)
entity
.
landPlantData
.
appearWormCountdownSecond
;
totalTime
=
(
int
)
entity
.
landPlantData
.
growthAllSecond
;
currentCarTime
=
(
int
)
entity
.
landPlantData
.
growthLastSecond
;
//设置暂停状态
setPauseTime
(
currentCarTime
);
//关闭上一次倒计时
if
(
timeControl
!=
null
)
{
StopCoroutine
(
timeControl
);
}
if
(
currentCarTime
>
0
)
{
timeControl
=
StartCoroutine
(
timeConteller
());
}
}
...
...
@@ -355,6 +355,7 @@ public class CarUIControl : MonoBehaviour
if
(
progressBarImg
!=
null
)
{
progressBarImg
.
fillAmount
=
1
-
(
currentCarTime
/
(
float
)
totalTime
);
fruitTimeTv
.
text
=
((
1
-
(
currentCarTime
/
(
float
)
totalTime
))
*
100
).
ToString
()
+
"%"
;
}
yield
return
new
WaitForSecondsRealtime
(
1f
);
if
(
currentCarTime
<=
0
)
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
9d32bdcf
...
...
@@ -489,7 +489,7 @@ public class DialogControl : MonoBehaviour
Invoke
(
"moveDiamondDialog"
,
1f
);
//#endif
HttpTool
.
Instance
.
_Get
(
"app/v
1/wdlc/reward
/diamond_by_video_status"
,
parm
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
HttpTool
.
Instance
.
_Get
(
"app/v
2/cscmnq
/diamond_by_video_status"
,
parm
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
DiamondplayNum
=
bean
.
playNum
;
tv_diamond_num
.
text
=
bean
.
rewardDiamondNum
.
ToString
();
...
...
@@ -1232,7 +1232,7 @@ public class DialogControl : MonoBehaviour
public
void
LookvideoGetDiamond
()
{
AdUtils
.
PlayRewardAd
(
"diamond_reward"
,
new
Action
<
bool
>((
cb
)
=>
AdUtils
.
PlayRewardAd
(
"diamond_reward
_v2
"
,
new
Action
<
bool
>((
cb
)
=>
{
if
(
cb
)
{
...
...
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