SRMP-Public/SRMP/Patches/Patch_IntorUI.cs
2023-05-29 22:23:11 +02:00

22 lines
No EOL
456 B
C#

using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SRMultiplayer.Patches
{
[HarmonyPatch(typeof(IntroUI))]
[HarmonyPatch("Awake")]
class IntroUI_Awake
{
static void Postfix(IntroUI __instance)
{
if (Globals.IsMultiplayer)
{
GameObject.Destroy(__instance.gameObject);
}
}
}
}