mirror of
https://github.com/Brybry16/BetterPolus.git
synced 2026-10-19 15:51:40 +00:00
Added VersionShowerPatch
This commit is contained in:
1 parent
8aa220d335
commit
66a4b0b3ec
2 files changed
+22
No files matched your search
@@ -20,6 +20,7 @@ namespace BetterPolus
|
||||
public override void Load()
|
||||
{
|
||||
Logger = Log;
|
||||
|
||||
Harmony.PatchAll();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
using BepInEx.IL2CPP;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BetterPolus
|
||||
{
|
||||
[HarmonyPatch(typeof(VersionShower), nameof(VersionShower.Start))]
|
||||
public class VersionShowerPatch
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch]
|
||||
public static void Postfix(VersionShower __instance)
|
||||
{
|
||||
var reactorVS = GameObject.Find("ReactorVersion");
|
||||
GameObject.Destroy(reactorVS);
|
||||
|
||||
TextRenderer text = __instance.text;
|
||||
text.Text += "\nLoaded [5E4CA6FF]BetterPolus []Mod by Brybry";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user