Skip to content

Commit c35405e

Browse files
committed
1.31
1 parent 1a6c5c8 commit c35405e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Plugin.cs

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public void Init(IPALogger logger, Config conf) {
2424

2525
UI.Manager.Init();
2626

27+
SharedCoroutineStarter.Init();
28+
2729
new Harmony("Kinsi55.BeatSaber.BetterSongSearch").PatchAll(Assembly.GetExecutingAssembly());
2830
}
2931

Util/SharedCoroutineStarter.cs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEngine;
2+
3+
public class SharedCoroutineStarter : MonoBehaviour {
4+
public static MonoBehaviour instance;
5+
6+
public static void Init() {
7+
instance = new GameObject().AddComponent<SharedCoroutineStarter>();
8+
}
9+
10+
void Awake() {
11+
GameObject.DontDestroyOnLoad(gameObject);
12+
}
13+
}

0 commit comments

Comments
 (0)