Merge branch 'master' into tc21/skip-to-music

This commit is contained in:
Tianyi Cao
2024-02-07 02:20:39 -08:00
7 changed files with 106 additions and 14 deletions

View File

@@ -2,15 +2,15 @@ using System;
using HarmonyLib;
using UnityEngine;
namespace AquaMai.UX
namespace AquaMai.UX
{
// Hides the 2p (right hand side) UI.
// Note: this is not my original work. I simply interpreted the code and rewrote it as a mod.
public class SinglePlayer
public class SinglePlayer
{
[HarmonyPrefix]
[HarmonyPatch(typeof(Main.GameMain), "LateInitialize", new Type[] { typeof(MonoBehaviour), typeof(Transform), typeof(Transform) })]
public static bool LateInitialize(MonoBehaviour gameMainObject, ref Transform left, ref Transform right)
public static bool LateInitialize(MonoBehaviour gameMainObject, ref Transform left, ref Transform right)
{
left.transform.position = Vector3.zero;
right.localScale = Vector3.zero;