public static bool Prefix(ref object arg0, ref object arg1) { arg0 = Replacement.ReplaceText(arg0.ToString()); arg1 = Replacement.ReplaceText(arg1.ToString()); return(true); }
public static bool Prefix(ref object[] arg) { arg = arg .Select(x => Replacement.ReplaceText(x.ToString())) .ToArray(); return(true); }
public static void Postfix(TextMeshProUGUI __instance) { __instance.text = Replacement.ReplaceText(__instance.text); }
private static bool Prefix(ref string value) { value = Replacement.ReplaceText(value); return(true); }