Skip to content

Commit a2a08e3

Browse files
committed
Update Advertising.cs
1 parent 330a35a commit a2a08e3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

General/Advertising.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
using System;
12
using System.Collections;
23
using UnityEngine;
4+
using VirtueSky.EditorUtils;
35
using VirtueSky.Events;
46

57
namespace VirtueSky.Ads
@@ -92,5 +94,12 @@ private void OnApplicationPause(bool pauseStatus)
9294
if (!pauseStatus) (currentAdClient as MaxAdClient)?.ShowAppOpen();
9395
}
9496
#endif
97+
98+
#if UNITY_EDITOR
99+
private void Reset()
100+
{
101+
adSetting = ScriptableSetting.CreateAndGetScriptableAsset<VirtueSky.Ads.AdSetting>("/Ads");
102+
}
103+
#endif
95104
}
96105
}

0 commit comments

Comments
 (0)