public static Boolean Prefix(PlayerSelection __instance, PlayerSelection.Mode ____mode, Boolean isEnabled) { if (isEnabled && ____mode == PlayerSelection.Mode.Scanner) { __instance.Reset(); } return(HarmonyPrefixResult.CallOriginal); }