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
9c60d905
Commit
9c60d905
authored
Jun 30, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Plain Diff
111
parents
5d5ee57f
93ff45fb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
647 deletions
+32
-647
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
+11
-4
No files found.
Assets/AdSDK.meta
deleted
100644 → 0
View file @
5d5ee57f
fileFormatVersion: 2
guid: 3bdf81920b9ea8e46abd100e083eefe7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/InitProject.meta
deleted
100644 → 0
View file @
5d5ee57f
fileFormatVersion: 2
guid: 699ec949cb5539f48b04345cd60af6dd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/InitProject/InitScene.unity
deleted
100644 → 0
View file @
5d5ee57f
This diff is collapsed.
Click to expand it.
Assets/AdSDK/InitProject/InitScene.unity.meta
deleted
100644 → 0
View file @
5d5ee57f
fileFormatVersion: 2
guid: b0fdeff412c9a1f4e82faa8ef0aeb063
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scripts/Presenter/HomePresenter.cs
View file @
9c60d905
...
...
@@ -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 @
9c60d905
...
...
@@ -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 @
9c60d905
...
...
@@ -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
(
"f0"
)
+
"%"
;
}
yield
return
new
WaitForSecondsRealtime
(
1f
);
if
(
currentCarTime
<=
0
)
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
9c60d905
...
...
@@ -476,6 +476,7 @@ public class DialogControl : MonoBehaviour
}
}
private
int
DiamondplayNum
;
private
int
DiamondRewardNum
;
//展示获取钻石弹窗
public
void
showDiamondDialog
()
{
...
...
@@ -489,9 +490,10 @@ 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
;
DiamondRewardNum
=
bean
.
rewardDiamondNum
;
tv_diamond_num
.
text
=
bean
.
rewardDiamondNum
.
ToString
();
tv_diamond_times
.
text
=
"每天0点重置视频次数(剩余"
+
DiamondplayNum
+
"次)"
;
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
...
...
@@ -540,10 +542,14 @@ public class DialogControl : MonoBehaviour
HttpTool
.
Instance
.
_Get
(
"app/v2/cscmnq/diamond_by_video_status"
,
null
,
new
Action
<
DiamondStatusBean
>((
bean
)
=>
{
DiamondplayNum
=
bean
.
playNum
;
<<<<<<<
HEAD
=======
DiamondRewardNum
=
bean
.
rewardDiamondNum
;
>>>>>>>
93f
f45fb604960c0d9e04b58f0749838d58dde01
if
(
DiamondplayNum
>
0
)
{
rdp
.
Show
(
bean
.
play
Num
);
rdp
.
Show
(
bean
.
rewardDiamond
Num
);
}
else
{
...
...
@@ -1232,14 +1238,14 @@ 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
)
{
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);
...
...
@@ -1249,6 +1255,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