Skip to content

Commit 350f301

Browse files
committed
[F] 同时打开 GameSystem.ExteraMouseInput.DisplayArea 和 DisplayTouchInGame 时,进入游玩歌曲闪退
1 parent 00b36b7 commit 350f301

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AquaMai.Mods/Utils/DisplayTouchInGame.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public static void RegisterMouseTouchPanel(int target, MouseTouchPanel targetMou
8585
return;
8686
prefab = targetMouseTouchPanel.gameObject;
8787
MelonLogger.Msg("[DisplayTouchInGame] RegisterMouseTouchPanel");
88-
MelonLogger.Msg(prefab);
8988
}
9089

9190
[HarmonyPostfix]
@@ -136,6 +135,11 @@ public static void OnGameStart(GameMonitor[] ____monitors)
136135
Object.Destroy(touchPanel.GetComponent<MouseTouchPanel>());
137136
foreach (Transform item in touchPanel.transform)
138137
{
138+
if (item.name.StartsWith("CircleGraphic"))
139+
{
140+
Object.Destroy(item.gameObject);
141+
continue;
142+
}
139143
Object.Destroy(item.GetComponent<MeshButton>());
140144
Object.Destroy(item.GetComponent<Collider>());
141145
if (item.name.StartsWith("A"))

0 commit comments

Comments
 (0)