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
98d95721
Commit
98d95721
authored
Jul 03, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Plain Diff
11
parents
ad9dc027
5ddff778
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
12 deletions
+75
-12
AdManager.cs
Assets/Base/AdSDK/AD/AD_Manager/AdManager.cs
+6
-6
LeeMainController.cs
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
+33
-0
TaskItem.cs
Assets/Game/Main/Scripts/Item/TaskItem.cs
+27
-0
CarPresenter.cs
Assets/Game/Main/Scripts/Presenter/CarPresenter.cs
+2
-2
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+1
-1
EditorBuildSettings.asset
ProjectSettings/EditorBuildSettings.asset
+6
-3
No files found.
Assets/Base/AdSDK/AD/AD_Manager/AdManager.cs
View file @
98d95721
...
@@ -248,13 +248,13 @@ public class AdManager
...
@@ -248,13 +248,13 @@ public class AdManager
return
;
return
;
}
}
//adList.Reverse();
//adList.Reverse();
//
//
首次启动时倒序加载
// 首次启动时倒序加载
//
if (PlayerPrefs.GetInt("isFirstLoadSplashAd") != 1)
if
(
PlayerPrefs
.
GetInt
(
"isFirstLoadSplashAd"
)
!=
1
)
//
{
{
//
adList.Reverse();
adList
.
Reverse
();
//
PlayerPrefs.SetInt("isFirstLoadSplashAd", 1);
PlayerPrefs
.
SetInt
(
"isFirstLoadSplashAd"
,
1
);
//
}
}
List
<
AdEntity
>
totalEntityList
=
adList
;
List
<
AdEntity
>
totalEntityList
=
adList
;
AdEntity
entity
=
totalEntityList
[
0
];
AdEntity
entity
=
totalEntityList
[
0
];
...
...
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
View file @
98d95721
...
@@ -108,5 +108,38 @@ public class LeeMainController : MonoBehaviour
...
@@ -108,5 +108,38 @@ public class LeeMainController : MonoBehaviour
private
void
DidSelectedToPlanting
(
int
plantId
)
private
void
DidSelectedToPlanting
(
int
plantId
)
{
{
FastPlanting
.
Instance
().
Planting
(
plantId
);
FastPlanting
.
Instance
().
Planting
(
plantId
);
switch
(
plantId
)
{
case
1
:
// 白菜
EventUtils
.
OnEvent
(
"zz_bc_click"
);
break
;
case
2
:
// 西红柿
EventUtils
.
OnEvent
(
"zz_xhs_click"
);
break
;
case
3
:
// 南瓜
EventUtils
.
OnEvent
(
"zz_ng_click"
);
break
;
case
4
:
// 萝卜
EventUtils
.
OnEvent
(
"zz_lb_click"
);
break
;
case
5
:
// 玉米
EventUtils
.
OnEvent
(
"zz_ym_click"
);
break
;
case
6
:
// 茄子
EventUtils
.
OnEvent
(
"zz_qz_click"
);
break
;
case
7
:
// 西瓜
EventUtils
.
OnEvent
(
"zz_xg_click"
);
break
;
case
8
:
// 葡萄
EventUtils
.
OnEvent
(
"zz_pt_click"
);
break
;
case
9
:
// 草莓
EventUtils
.
OnEvent
(
"zz_cm_click"
);
break
;
default
:
break
;
}
}
}
}
}
Assets/Game/Main/Scripts/Item/TaskItem.cs
View file @
98d95721
...
@@ -207,6 +207,33 @@ public class TaskItem : MonoBehaviour
...
@@ -207,6 +207,33 @@ public class TaskItem : MonoBehaviour
}
}
else
if
(
item
.
status
==
2
)
else
if
(
item
.
status
==
2
)
{
{
switch
(
item
.
sid
)
{
case
2597
:
// 大转盘
EventUtils
.
OnEvent
(
"rw_zplq_click"
);
break
;
case
2598
:
// 10次任意蔬菜
EventUtils
.
OnEvent
(
"rw_rysc_click"
);
break
;
case
2599
:
// 5次全体加速
EventUtils
.
OnEvent
(
"rw_qtjs_click"
);
break
;
case
2600
:
// 收获5次任务蔬菜
EventUtils
.
OnEvent
(
"rw_shwc_click"
);
break
;
case
2601
:
// 一盒草莓
EventUtils
.
OnEvent
(
"rw_yhcm_click"
);
break
;
case
2602
:
// 翻翻看
EventUtils
.
OnEvent
(
"rw_ffk_click"
);
break
;
case
2603
:
// 视频任务
EventUtils
.
OnEvent
(
"rw_sprw_click"
);
break
;
default
:
break
;
}
Dictionary
<
string
,
object
>
parm
=
new
Dictionary
<
string
,
object
>();
Dictionary
<
string
,
object
>
parm
=
new
Dictionary
<
string
,
object
>();
parm
.
Clear
();
parm
.
Clear
();
parm
.
Add
(
"adId"
,
item
.
sid
);
parm
.
Add
(
"adId"
,
item
.
sid
);
...
...
Assets/Game/Main/Scripts/Presenter/CarPresenter.cs
View file @
98d95721
...
@@ -173,7 +173,7 @@ public class CarPresenter : CarContract.Presenter
...
@@ -173,7 +173,7 @@ public class CarPresenter : CarContract.Presenter
parm
.
Add
(
"landId"
,
landId
);
parm
.
Add
(
"landId"
,
landId
);
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/unlock_land"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/unlock_land"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
{
{
EventUtils
.
OnEvent
(
"
unlock"
+
landId
);
EventUtils
.
OnEvent
(
"
td_js_"
+
(
landId
-
1
)
);
//Guide.guide.onClickStep4();
//Guide.guide.onClickStep4();
//mView.CarInfo(bean);
//mView.CarInfo(bean);
//更新主页车列表
//更新主页车列表
...
@@ -195,7 +195,7 @@ public class CarPresenter : CarContract.Presenter
...
@@ -195,7 +195,7 @@ public class CarPresenter : CarContract.Presenter
parm
.
Add
(
"landId"
,
landId
);
parm
.
Add
(
"landId"
,
landId
);
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/unlock_land"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
HttpTool
.
Instance
.
_Post
(
"app/v1/wdlc/unlock_land"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
{
{
EventUtils
.
OnEvent
(
"
unlock"
+
landId
);
EventUtils
.
OnEvent
(
"
td_js_"
+
(
landId
-
1
)
);
//Guide.guide.onClickStep4();
//Guide.guide.onClickStep4();
//mView.CarInfo(bean);
//mView.CarInfo(bean);
//更新主页车列表
//更新主页车列表
...
...
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
98d95721
...
@@ -778,7 +778,7 @@ public class DialogControl : MonoBehaviour
...
@@ -778,7 +778,7 @@ public class DialogControl : MonoBehaviour
}
}
else
else
{
{
EventUtils
.
OnEvent
(
"
onlinePacket_click2"
,
"点击晃动红包
"
);
EventUtils
.
OnEvent
(
"
zs_ljlq_show
"
);
AdUtils
.
PlayRewardAd
(
"video_reward2"
,
new
Action
<
bool
>((
cb
)
=>
AdUtils
.
PlayRewardAd
(
"video_reward2"
,
new
Action
<
bool
>((
cb
)
=>
{
{
if
(
cb
)
if
(
cb
)
...
...
ProjectSettings/EditorBuildSettings.asset
View file @
98d95721
...
@@ -11,13 +11,16 @@ EditorBuildSettings:
...
@@ -11,13 +11,16 @@ EditorBuildSettings:
-
enabled
:
1
-
enabled
:
1
path
:
Assets/Game/Splash/Splash.unity
path
:
Assets/Game/Splash/Splash.unity
guid
:
37af8cf3fb373478ab04e3ee2f3b700a
guid
:
37af8cf3fb373478ab04e3ee2f3b700a
-
enabled
:
1
-
enabled
:
0
path
:
Assets/Game/Main/Scenes/CrazyCar.unity
path
:
guid
:
2ae344869669f6641a05481805b94e98
guid
:
00000000000000000000000000000000
-
enabled
:
0
-
enabled
:
0
path
:
Assets/Base/AdSDK/AD/GDT/UnionDemo/UnionExample.unity
path
:
Assets/Base/AdSDK/AD/GDT/UnionDemo/UnionExample.unity
guid
:
6c963ae210fa3c3438c2f6770ee81fc9
guid
:
6c963ae210fa3c3438c2f6770ee81fc9
-
enabled
:
0
-
enabled
:
0
path
:
Assets/Base/AdSDK/AD/Demo/AdDemo.unity
path
:
Assets/Base/AdSDK/AD/Demo/AdDemo.unity
guid
:
ef80a35d44f809e4a8957d1ed9571fd2
guid
:
ef80a35d44f809e4a8957d1ed9571fd2
-
enabled
:
0
path
:
guid
:
00000000000000000000000000000000
m_configObjects
:
{}
m_configObjects
:
{}
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