static void Postfix(CarScreenLogic __instance) { if (!Options.Get <bool>("Enabled")) { return; } __instance.gameObject.AddComponent <CarScreenLogic__Script>(); }
public static void Clear() { FindScreen(); if (CarScreenLogic) { CarScreenLogic.ClearDecodeText(); } }
internal static void Postfix(CarScreenLogic __instance) { Transform cobwebTransform = __instance.transform.Find("CircleParent/HalloweenCobwebPlatform"); if (cobwebTransform) { cobwebTransform.gameObject.SetActive(true); } }
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); }); } }
public static void WriteText(string text, float perCharacterInterval, int clearDelayUnits, float displayDelay, bool clearOnEnd, string timeBarText) { FindScreen(); if (CarScreenLogic) { var formattedForScreen = text.WordWrap(LineLength); for (var i = 0; i < clearDelayUnits; i++) { formattedForScreen += " "; } CarScreenLogic.DecodeText(formattedForScreen, perCharacterInterval, displayDelay, clearOnEnd, timeBarText); } }
internal static void Postfix(CarScreenLogic __instance) { Transform snowTransform = __instance.transform.Find("CircleParent/ChristmasSnow"); if (snowTransform) { if (snowTransform.HasComponent <HolidayFeaturesToggle>()) { snowTransform.GetComponent <HolidayFeaturesToggle>().Destroy(); } bool flag = Mod.Instance.IsActive && Mod.Instance.Config.ChristmasSnowVisualCheat; snowTransform.gameObject.SetActive(flag); } }
public void Start() { this.carscreen = gameObject.GetComponent <CarScreenLogic>(); }
void Awake() { logic = GetComponent <CarScreenLogic>(); }
static void Prefix(CarScreenLogic __instance) { __instance.gameObject.AddComponent <CarScreenLogic_Update>(); }