Skip to content

Commit c597dc8

Browse files
committed
update AppTracking
1 parent 471b6b3 commit c597dc8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

VirtueSky/Advertising/Runtime/General/Advertising.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private void Start()
110110

111111
void InitAdClient()
112112
{
113-
AppTracking.enableTrackRevenue = adSetting.EnableTrackAdRevenue;
113+
AppTracking.Init(adSetting.EnableTrackAdRevenue);
114114
if (adSetting.UseMax)
115115
{
116116
maxAdClient = new MaxAdClient(adSetting);

VirtueSky/Tracking/Runtime/AppTracking.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
{
33
public struct AppTracking
44
{
5-
public static bool enableTrackRevenue;
5+
private static bool enableTrackRevenue;
6+
7+
public static void Init(bool _enableTrackRevenue)
8+
{
9+
enableTrackRevenue = _enableTrackRevenue;
10+
}
611

712
public static void TrackRevenue(double value, string network, string unitId, string format,
813
string currentAdSettingNetwork)

0 commit comments

Comments
 (0)