1
0
mirror of synced 2024-12-19 07:45:53 +01:00
TakoTako/SkipSplashScreen.cs

20 lines
608 B
C#
Raw Normal View History

using System.Diagnostics.CodeAnalysis;
using HarmonyLib;
namespace TaikoMods;
[HarmonyPatch]
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class SkipSplashScreen
{
/// <summary>
/// Simply load the next scene, I don't think this scene does anything specific?
/// </summary>
[HarmonyPatch(typeof(BootManager), "Start")]
[HarmonyPostfix]
private static void BootManager_Postfix(BootManager __instance)
{
TaikoSingletonMonoBehaviour<CommonObjects>.Instance.MySceneManager.ChangeScene("Title", false);
__instance.gameObject.SetActive(false);
}
}