From: EoF-1141 <61620805+EoF-1141@users.noreply.github.com> Date: Fri, 16 Apr 2021 22:53:47 +0000 (+0200) Subject: Delete FreePlayFix.cs X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=816e1e7351972a03763bafe8027615f550b46849;p=rhonda%2Ftheotherroles.git Delete FreePlayFix.cs --- diff --git a/FreePlayFix.cs b/FreePlayFix.cs deleted file mode 100644 index 816f762..0000000 --- a/FreePlayFix.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Linq; -using HarmonyLib; -using UnityEngine; - -namespace TheOtherRoles { - [HarmonyPatch] - public static class FreePlayFix { - public static bool isInFreePlay = false; - - [HarmonyPatch(typeof(ShipStatus), nameof(ShipStatus.Begin))] - public static class ShipStatusBeginPatch { - public static void Prefix(ShipStatus __instance) { - System.Console.WriteLine("Begin"); - isInFreePlay = UnityEngine.Object.FindObjectsOfType().ToList() - .Find(console => console.name == "TaskAddConsole"); - } - } - } -} \ No newline at end of file