From 8a8d65e2494f8013074c4fc106b3046662100d9d Mon Sep 17 00:00:00 2001 From: js6pak Date: Tue, 15 Jun 2021 22:14:40 +0200 Subject: [PATCH] 2021.6.15 --- AmongUs.props | 4 ++-- Reactor/Extensions/TextRendererExtensions.cs | 24 -------------------- Reactor/Patches/FreeNamePatch.cs | 1 + 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 Reactor/Extensions/TextRendererExtensions.cs diff --git a/AmongUs.props b/AmongUs.props index 55b3d8e..c761c92 100644 --- a/AmongUs.props +++ b/AmongUs.props @@ -1,8 +1,8 @@ Steam - 2021.5.25.2s - 2021.5.10i + 2021.6.15s + 2021.6.15i diff --git a/Reactor/Extensions/TextRendererExtensions.cs b/Reactor/Extensions/TextRendererExtensions.cs deleted file mode 100644 index 2f7bd95..0000000 --- a/Reactor/Extensions/TextRendererExtensions.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Linq; -using UnityEngine; - -namespace Reactor.Extensions -{ - public static class TextRendererExtensions - { - private static readonly Lazy _fontData = new Lazy(() => FontCache.Instance.DefaultFonts.ToArray().Single(x => x.name == "Arial")); - - public static TextRenderer AddTextRenderer(this GameObject gameObject) - { - var renderer = gameObject.AddComponent(); - renderer.material = new Material(Shader.Find("Unlit/VectFontShader")); - - gameObject.AddComponent(); - - var textRenderer = gameObject.AddComponent(); - textRenderer.FontData = _fontData.Value; - - return textRenderer; - } - } -} diff --git a/Reactor/Patches/FreeNamePatch.cs b/Reactor/Patches/FreeNamePatch.cs index 9e749ed..06aeef7 100644 --- a/Reactor/Patches/FreeNamePatch.cs +++ b/Reactor/Patches/FreeNamePatch.cs @@ -6,6 +6,7 @@ using UnityEngine.UI; namespace Reactor.Patches { + // TODO this needs some changes as text box was entirely removed in 2021.6.15 internal static class FreeNamePatch { [HarmonyPatch(typeof(SetNameText), nameof(SetNameText.Start))]