Skip to content

Commit d92ce0b

Browse files
committed
-update
1 parent 7e6aaed commit d92ce0b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Editor/IapWindowEditor.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ public static void MenuOpenIapSettings()
1616
{
1717
Directory.CreateDirectory(path);
1818
}
19+
1920
var settings = CreateAndGetScriptableAsset<IapSettings>(path);
2021
Selection.activeObject = settings;
2122
EditorGUIUtility.PingObject(settings);
2223
EditorUtility.FocusProjectWindow();
2324
}
24-
static T CreateAndGetScriptableAsset<T>(string path = "")
25+
26+
private static T CreateAndGetScriptableAsset<T>(string path = "")
2527
where T : ScriptableObject
2628
{
2729
var so = FindAssetAtFolder<T>(new string[] { "Assets" }).FirstOrDefault();
@@ -36,7 +38,8 @@ static T CreateAndGetScriptableAsset<T>(string path = "")
3638

3739
return so;
3840
}
39-
static T[] FindAssetAtFolder<T>(string[] paths) where T : Object
41+
42+
private static T[] FindAssetAtFolder<T>(string[] paths) where T : Object
4043
{
4144
var list = new List<T>();
4245
var guids = AssetDatabase.FindAssets($"t:{typeof(T).Name}", paths);

Runtime/IapManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class IapManager : MonoBehaviour, IDetailedStoreListener
2323

2424
private void Awake()
2525
{
26+
DontDestroyOnLoad(this.gameObject);
2627
if (Instance == null)
2728
{
2829
Instance = this;

0 commit comments

Comments
 (0)