1
0
mirror of synced 2024-12-17 23:25:51 +01:00
TakoTako/SkipSplashScreen.cs
2022-01-30 16:28:02 +11:00

20 lines
608 B
C#

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);
}
}