public static void Clear() { FindScreen(); if (CarScreenLogic) { CarScreenLogic.ClearDecodeText(); } }
public static void Prefix(CarScreenLogic __instance, string text, float speed, float delay, bool clearOnFinish, bool useLines, int fontSize, bool playClickSound) { if (clearOnFinish) { __instance.DoAfterWait((speed * text.Length) + delay + 0.8f, () => { if (__instance.errorText_.CurrentState_ != TextDecodeInLogic.State.Done) { return; } __instance.ClearDecodeText(true); }); } }