Skip to content

Commit c8bbde5

Browse files
committed
- update version
1 parent 2b132d3 commit c8bbde5

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
### Add the line below to `Packages/manifest.json`
2525

26-
for version `1.0.5`
26+
for version `1.0.6`
2727
```csharp
28-
"com.wolf-package.advertising":"https://github.com/wolf-package/advertising-unity.git#1.0.5",
28+
"com.wolf-package.advertising":"https://github.com/wolf-package/advertising-unity.git#1.0.6",
2929
```
3030
dependency `extensions-unity-1.0.0`
3131
```csharp

Runtime/General/AdStatic.cs

+5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ public static class AdStatic
77
{
88
public static bool IsRemoveAd
99
{
10+
#if VIRTUESKY_DATA
11+
get => VirtueSky.DataStorage.GameData.Get($"{Application.identifier}_removeads", false);
12+
set => VirtueSky.DataStorage.GameData.Set($"{Application.identifier}_removeads", value);
13+
#else
1014
get => PlayerPrefs.GetInt($"{Application.identifier}_removeads", 0) > 0;
1115
set => PlayerPrefs.SetInt($"{Application.identifier}_removeads", value ? 1 : 0);
16+
#endif
1217
}
1318

1419
public static bool isShowingAd;

Runtime/UnityCommon.Advertising.asmdef

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"GUID:37f16d35c05c6f34eacb567043cec159",
77
"GUID:4bd184a02478330468d38d43be22efab",
88
"GUID:928509ee676cc2e439010e69f455e144",
9-
"GUID:760a4c7888534400e882b82c5b3fba06"
9+
"GUID:760a4c7888534400e882b82c5b3fba06",
10+
"GUID:32dbaa332e571bf429b7de517f75f074"
1011
],
1112
"includePlatforms": [],
1213
"excludePlatforms": [],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.wolf-package.advertising",
33
"displayName": "UnityCommon-ADS",
44
"description": "Support show ads for game unity",
5-
"version": "1.0.5",
5+
"version": "1.0.6",
66
"unity": "2021.3",
77
"category": "virtuesky",
88
"license": "MIT",

0 commit comments

Comments
 (0)