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
76affebd
Commit
76affebd
authored
Jun 15, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加按钮点击音效,添加埋点
parent
8e94b274
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
50 additions
and
5 deletions
+50
-5
HSRPGetDialog.cs
...Main/Scripts/Item/HandSpeedRedPacketItem/HSRPGetDialog.cs
+2
-0
HandSpeedRedPacketItem.cs
...pts/Item/HandSpeedRedPacketItem/HandSpeedRedPacketItem.cs
+2
-0
HomeInfoControl.cs
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
+2
-0
RAExplain.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RAExplain.cs
+1
-0
RAInputAddress.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputAddress.cs
+7
-1
RAInputName.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputName.cs
+7
-1
RAInputPhone.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputPhone.cs
+7
-1
RARankList.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RARankList.cs
+11
-1
RAYesterdayList.cs
...ts/Game/Main/Scripts/dialog/RealAwards/RAYesterdayList.cs
+2
-0
RealAwardsCard.cs
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsCard.cs
+4
-0
RealAwardsWinDialog.cs
...ame/Main/Scripts/dialog/RealAwards/RealAwardsWinDialog.cs
+4
-0
PackageManagerSettings.asset
ProjectSettings/PackageManagerSettings.asset
+1
-1
No files found.
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem/HSRPGetDialog.cs
View file @
76affebd
...
@@ -33,6 +33,8 @@ public class HSRPGetDialog : MonoBehaviour
...
@@ -33,6 +33,8 @@ public class HSRPGetDialog : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedTakeButton
()
public
void
DidSelectedTakeButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
HSRPVM
.
RequestInternetForTakeReward
();
HSRPVM
.
RequestInternetForTakeReward
();
gameObject
.
SetActive
(
false
);
gameObject
.
SetActive
(
false
);
...
...
Assets/Game/Main/Scripts/Item/HandSpeedRedPacketItem/HandSpeedRedPacketItem.cs
View file @
76affebd
...
@@ -68,6 +68,8 @@ public class HandSpeedRedPacketItem : MonoBehaviour
...
@@ -68,6 +68,8 @@ public class HandSpeedRedPacketItem : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedItem
()
public
void
DidSelectedItem
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
Instantiate
(
HSRPEffectPrefab
,
transform
);
Instantiate
(
HSRPEffectPrefab
,
transform
);
currentProgress
=
Mathf
.
Clamp
(
currentProgress
+
addSpeed
,
0
,
1
);
currentProgress
=
Mathf
.
Clamp
(
currentProgress
+
addSpeed
,
0
,
1
);
...
...
Assets/Game/Main/Scripts/View/HomeInfoControl.cs
View file @
76affebd
...
@@ -682,6 +682,8 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
...
@@ -682,6 +682,8 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
/// </summary>
/// </summary>
public
void
DidSelectedShiwujiangli
()
public
void
DidSelectedShiwujiangli
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
if
(
RealAwardsVM
.
dataModel
!=
null
)
if
(
RealAwardsVM
.
dataModel
!=
null
)
{
{
if
(
RealAwardsVM
.
didChooseAward
)
if
(
RealAwardsVM
.
didChooseAward
)
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RAExplain.cs
View file @
76affebd
...
@@ -10,6 +10,7 @@ public class RAExplain : MonoBehaviour
...
@@ -10,6 +10,7 @@ public class RAExplain : MonoBehaviour
{
{
public
void
DidSelectedCloseButton
()
public
void
DidSelectedCloseButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRAExplain
();
FindObjectOfType
<
DialogControl
>().
CloseRAExplain
();
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputAddress.cs
View file @
76affebd
...
@@ -17,6 +17,10 @@ public class RAInputAddress : MonoBehaviour
...
@@ -17,6 +17,10 @@ public class RAInputAddress : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedSubmitButton
()
public
void
DidSelectedSubmitButton
()
{
{
EventUtils
.
OnEvent
(
"shiwu_tijiaoaddress"
);
AudioUtils
.
ins
.
PlayBtnAudio
();
if
(
inputField
.
text
.
Length
==
0
)
if
(
inputField
.
text
.
Length
==
0
)
{
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请输入收货地址"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请输入收货地址"
);
...
@@ -24,7 +28,7 @@ public class RAInputAddress : MonoBehaviour
...
@@ -24,7 +28,7 @@ public class RAInputAddress : MonoBehaviour
return
;
return
;
}
}
AdUtils
.
PlayRewardAd
(
"
doubling_rewar
d"
,
new
Action
<
bool
>((
cb
)
=>
AdUtils
.
PlayRewardAd
(
"
shiwu_tijiaoaddress_a
d"
,
new
Action
<
bool
>((
cb
)
=>
{
{
if
(
cb
)
if
(
cb
)
{
{
...
@@ -41,6 +45,8 @@ public class RAInputAddress : MonoBehaviour
...
@@ -41,6 +45,8 @@ public class RAInputAddress : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedCloseButton
()
public
void
DidSelectedCloseButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputAddress
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputAddress
();
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputName.cs
View file @
76affebd
...
@@ -17,6 +17,10 @@ public class RAInputName : MonoBehaviour
...
@@ -17,6 +17,10 @@ public class RAInputName : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedSubmitButton
()
public
void
DidSelectedSubmitButton
()
{
{
EventUtils
.
OnEvent
(
"shiwu_tijiaoname"
);
AudioUtils
.
ins
.
PlayBtnAudio
();
if
(
inputField
.
text
.
Length
==
0
)
if
(
inputField
.
text
.
Length
==
0
)
{
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请输入收货人姓名"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请输入收货人姓名"
);
...
@@ -24,7 +28,7 @@ public class RAInputName : MonoBehaviour
...
@@ -24,7 +28,7 @@ public class RAInputName : MonoBehaviour
return
;
return
;
}
}
AdUtils
.
PlayRewardAd
(
"
doubling_rewar
d"
,
new
Action
<
bool
>((
cb
)
=>
AdUtils
.
PlayRewardAd
(
"
shiwu_tijiaoaddress_a
d"
,
new
Action
<
bool
>((
cb
)
=>
{
{
if
(
cb
)
if
(
cb
)
{
{
...
@@ -41,6 +45,8 @@ public class RAInputName : MonoBehaviour
...
@@ -41,6 +45,8 @@ public class RAInputName : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedCloseButton
()
public
void
DidSelectedCloseButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputName
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputName
();
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RAInputPhone.cs
View file @
76affebd
...
@@ -17,6 +17,10 @@ public class RAInputPhone : MonoBehaviour
...
@@ -17,6 +17,10 @@ public class RAInputPhone : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedSubmitButton
()
public
void
DidSelectedSubmitButton
()
{
{
EventUtils
.
OnEvent
(
"shiwu_tijiaophone"
);
AudioUtils
.
ins
.
PlayBtnAudio
();
if
(
inputField
.
text
.
Length
==
0
)
if
(
inputField
.
text
.
Length
==
0
)
{
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请输入收货人手机号"
);
ToastPlugin
.
ToastHelper
.
ShowToast
(
"请输入收货人手机号"
);
...
@@ -24,7 +28,7 @@ public class RAInputPhone : MonoBehaviour
...
@@ -24,7 +28,7 @@ public class RAInputPhone : MonoBehaviour
return
;
return
;
}
}
AdUtils
.
PlayRewardAd
(
"
doubling_rewar
d"
,
new
Action
<
bool
>((
cb
)
=>
AdUtils
.
PlayRewardAd
(
"
shiwu_tijiaoaddress_a
d"
,
new
Action
<
bool
>((
cb
)
=>
{
{
if
(
cb
)
if
(
cb
)
{
{
...
@@ -43,6 +47,8 @@ public class RAInputPhone : MonoBehaviour
...
@@ -43,6 +47,8 @@ public class RAInputPhone : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedCloseButton
()
public
void
DidSelectedCloseButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
FindObjectOfType
<
DialogControl
>().
CloseRAInputPhone
();
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RARankList.cs
View file @
76affebd
...
@@ -114,6 +114,8 @@ public class RARankList : MonoBehaviour
...
@@ -114,6 +114,8 @@ public class RARankList : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedExplainButton
()
public
void
DidSelectedExplainButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
ShowRAExplain
();
FindObjectOfType
<
DialogControl
>().
ShowRAExplain
();
}
}
...
@@ -122,6 +124,8 @@ public class RARankList : MonoBehaviour
...
@@ -122,6 +124,8 @@ public class RARankList : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedYeaterdayButton
()
public
void
DidSelectedYeaterdayButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
ShowRAYesterdayList
();
FindObjectOfType
<
DialogControl
>().
ShowRAYesterdayList
();
}
}
...
@@ -130,7 +134,11 @@ public class RARankList : MonoBehaviour
...
@@ -130,7 +134,11 @@ public class RARankList : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedImproveButton
()
public
void
DidSelectedImproveButton
()
{
{
AdUtils
.
PlayRewardAd
(
"doubling_reward"
,
new
Action
<
bool
>((
cb
)
=>
EventUtils
.
OnEvent
(
"shiwu_tishengpaiming"
);
AudioUtils
.
ins
.
PlayBtnAudio
();
AdUtils
.
PlayRewardAd
(
"shiwu_tishengpaiming_ad"
,
new
Action
<
bool
>((
cb
)
=>
{
{
if
(
cb
)
if
(
cb
)
{
{
...
@@ -146,6 +154,8 @@ public class RARankList : MonoBehaviour
...
@@ -146,6 +154,8 @@ public class RARankList : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedCloseButton
()
public
void
DidSelectedCloseButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRARankList
();
FindObjectOfType
<
DialogControl
>().
CloseRARankList
();
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RAYesterdayList.cs
View file @
76affebd
...
@@ -56,6 +56,8 @@ public class RAYesterdayList : MonoBehaviour
...
@@ -56,6 +56,8 @@ public class RAYesterdayList : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedCloseButton
()
public
void
DidSelectedCloseButton
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRAYesterdayList
();
FindObjectOfType
<
DialogControl
>().
CloseRAYesterdayList
();
}
}
}
}
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsCard.cs
View file @
76affebd
...
@@ -59,6 +59,10 @@ public class RealAwardsCard : MonoBehaviour
...
@@ -59,6 +59,10 @@ public class RealAwardsCard : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedItem
()
public
void
DidSelectedItem
()
{
{
AudioUtils
.
ins
.
PlayBtnAudio
();
EventUtils
.
OnEvent
(
"shiwu_fanyifan"
);
// 播放动画时点击无效
// 播放动画时点击无效
if
(
RealAwardsVM
.
isPlayingAnimator
)
if
(
RealAwardsVM
.
isPlayingAnimator
)
{
{
...
...
Assets/Game/Main/Scripts/dialog/RealAwards/RealAwardsWinDialog.cs
View file @
76affebd
...
@@ -69,6 +69,10 @@ public class RealAwardsWinDialog : MonoBehaviour
...
@@ -69,6 +69,10 @@ public class RealAwardsWinDialog : MonoBehaviour
/// </summary>
/// </summary>
public
void
DidSelectedNextButton
()
public
void
DidSelectedNextButton
()
{
{
EventUtils
.
OnEvent
(
"shiwu_next"
);
AudioUtils
.
ins
.
PlayBtnAudio
();
FindObjectOfType
<
DialogControl
>().
CloseRealAwardsWinDialog
();
FindObjectOfType
<
DialogControl
>().
CloseRealAwardsWinDialog
();
FindObjectOfType
<
DialogControl
>().
ShowRAInputAddress
();
FindObjectOfType
<
DialogControl
>().
ShowRAInputAddress
();
}
}
...
...
ProjectSettings/PackageManagerSettings.asset
View file @
76affebd
...
@@ -17,7 +17,7 @@ MonoBehaviour:
...
@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries
:
m_Registries
:
-
m_Id
:
main
-
m_Id
:
main
m_Name
:
m_Name
:
m_Url
:
https://packages.unity.c
n
m_Url
:
https://packages.unity.c
om
m_Scopes
:
[]
m_Scopes
:
[]
m_IsDefault
:
1
m_IsDefault
:
1
m_UserSelectedRegistryName
:
m_UserSelectedRegistryName
:
...
...
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