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
4e36c964
Commit
4e36c964
authored
Jul 03, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加埋点
parent
1458dbdc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
3 deletions
+63
-3
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
No files found.
Assets/Game/Main/Resource/LeeScripts/LeeMainController.cs
View file @
4e36c964
...
@@ -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 @
4e36c964
...
@@ -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 @
4e36c964
...
@@ -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 @
4e36c964
...
@@ -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
)
...
...
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