internal static byte[] BytesGetterNew(this TextAsset obj) { if (patched && TextAssetResourceRedirector.TryLoadReplacement(obj.TextGetterOrig(), out string replacement)) { return(TextAssetEncoding.GetBytes(replacement)); } return(obj.BytesGetterOrig()); }
internal static string TextGetterNew(this TextAsset obj) { string result = obj.TextGetterOrig(); if (patched && TextAssetResourceRedirector.TryLoadReplacement(result, out string replacement)) { return(replacement); } return(result); }