mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
20 lines
535 B
C#
20 lines
535 B
C#
using BetterAmongUs.Modules;
|
|
using HarmonyLib;
|
|
|
|
namespace BetterAmongUs.Patches;
|
|
|
|
[HarmonyPatch(typeof(PingTracker))]
|
|
internal class PingTrackerPatch
|
|
{
|
|
[HarmonyPatch(nameof(PingTracker.Update))]
|
|
[HarmonyPrefix]
|
|
private static bool Prefix(PingTracker __instance)
|
|
{
|
|
var betterPingTracker = __instance.gameObject.AddComponent<BetterPingTracker>();
|
|
betterPingTracker.SetUp(__instance.text, __instance.aspectPosition);
|
|
__instance.enabled = false;
|
|
|
|
return false;
|
|
}
|
|
}
|