using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using Il2Cpp; using Il2CppInterop.Runtime; using Il2CppInterop.Runtime.InteropTypes; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppSystem; using MelonLoader; using SledXpMod; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: MelonInfo(typeof(global::SledXpMod.SledXpMod), "SledXpMod", "1.0.0", "Mute", null)] [assembly: MelonGame(null, null)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("SledXpMod")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SledXpMod")] [assembly: AssemblyTitle("SledXpMod")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace SledXpMod; public class SledXpMod : MelonMod { private bool _show; private bool _showSplash; private string _xpInput = "1000"; private string _status = ""; private Color _statusColor = Color.white; private PlayerSavedStats _statsCache; private GUIStyle _titleStyle; private GUIStyle _subtitleStyle; private GUIStyle _labelStyle; private GUIStyle _labelCenterStyle; private GUIStyle _monoStyle; private GUIStyle _inputStyle; private GUIStyle _btnPrimary; private GUIStyle _btnSecondary; private GUIStyle _statusStyle; private bool _stylesInit; private static readonly Color C_BG = new Color(0.06f, 0.09f, 0.14f, 0.97f); private static readonly Color C_PANEL_LT = new Color(0.13f, 0.2f, 0.3f, 1f); private static readonly Color C_SNOW = new Color(0.92f, 0.96f, 1f, 1f); private static readonly Color C_ICE = new Color(0.55f, 0.85f, 1f, 1f); private static readonly Color C_ICE_DIM = new Color(0.35f, 0.65f, 0.9f, 1f); private static readonly Color C_PINE = new Color(0.18f, 0.72f, 0.38f, 1f); private static readonly Color C_PINE_HOV = new Color(0.25f, 0.88f, 0.5f, 1f); private static readonly Color C_PINE_ACT = new Color(0.12f, 0.55f, 0.28f, 1f); private static readonly Color C_FROST = new Color(0.7f, 0.9f, 1f, 1f); private static readonly Color C_GREEN_OK = new Color(0.3f, 0.95f, 0.5f, 1f); private static readonly Color C_RED_ERR = new Color(1f, 0.38f, 0.38f, 1f); private const string FROG_ART = " ^^ ~~ ^^ ^^ ~~ ^^ ^^ ~~ ^^\n _ _\n __ ___.--'_`. .'_`--.___ __ \n ( _`.'. - 'o` ) ( 'o` - .`.'_ ) \n _\\.'_' _.-' `-._ `_`./_\n ( \\`. ) //\\` '/\\\\ ( .'/ )\n \\_`-'`---'\\\\__, ,__//`---'`-'_/\n \\` `-\\ /-' '/\n ` ' \n ribbit! ribbit! ribbit!\n"; private const string SNOW_TOP = " * . * . * . * . * "; private const string SNOW_BOT = " . * . * . * . * . "; private WindowFunction _drawWindowFn; private WindowFunction _drawSplashFn; private Rect _windowRect = new Rect(60f, 60f, 360f, 0f); private Rect _splashWindowRect = new Rect(100f, 70f, 460f, 0f); public override void OnUpdate() { if (Input.GetKeyDown((KeyCode)286)) { _show = !_show; if (_show) { _showSplash = true; _status = ""; } else { _showSplash = false; } } } public override void OnGUI() { //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) if (_show) { InitStyles(); if ((Delegate)(object)_drawSplashFn == (Delegate)null) { _drawSplashFn = DelegateSupport.ConvertDelegate((Delegate)new Action(DrawSplash)); } if ((Delegate)(object)_drawWindowFn == (Delegate)null) { _drawWindowFn = DelegateSupport.ConvertDelegate((Delegate)new Action(DrawWindow)); } if (_showSplash) { _splashWindowRect = GUILayout.Window(9183, _splashWindowRect, _drawSplashFn, "", (Il2CppReferenceArray)null); } else { _windowRect = GUILayout.Window(9182, _windowRect, _drawWindowFn, "", (Il2CppReferenceArray)null); } } } private void DrawSplash(int id) { //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) GUILayout.Space(8f); GUILayout.Label(" * . * . * . * . * ", _subtitleStyle, (Il2CppReferenceArray)null); GUILayout.Space(4f); GUILayout.Label("SledXpMod", _titleStyle, (Il2CppReferenceArray)null); GUILayout.Space(2f); GUILayout.Label("v1.0.0 by Mute", _labelCenterStyle, (Il2CppReferenceArray)null); GUILayout.Space(4f); GUILayout.Label(" . * . * . * . * . ", _subtitleStyle, (Il2CppReferenceArray)null); GUILayout.Space(10f); DrawLine(C_ICE, 0.2f); GUILayout.Space(10f); GUILayout.Label(" ^^ ~~ ^^ ^^ ~~ ^^ ^^ ~~ ^^\n _ _\n __ ___.--'_`. .'_`--.___ __ \n ( _`.'. - 'o` ) ( 'o` - .`.'_ ) \n _\\.'_' _.-' `-._ `_`./_\n ( \\`. ) //\\` '/\\\\ ( .'/ )\n \\_`-'`---'\\\\__, ,__//`---'`-'_/\n \\` `-\\ /-' '/\n ` ' \n ribbit! ribbit! ribbit!\n", _monoStyle, (Il2CppReferenceArray)null); GUILayout.Space(12f); DrawLine(C_ICE, 0.2f); GUILayout.Space(12f); if (GUILayout.Button(">> Enter <<", _btnPrimary, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(46f) })) { _showSplash = false; } GUILayout.Space(8f); GUILayout.Label("Press F5 to close the mod", _labelCenterStyle, (Il2CppReferenceArray)null); GUILayout.Space(6f); GUI.DragWindow(); } private void DrawWindow(int id) { //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Expected O, but got Unknown //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_021d: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_027d: Unknown result type (might be due to invalid IL or missing references) GUILayout.Space(6f); GUILayout.Label("SledXpMod", _titleStyle, (Il2CppReferenceArray)null); GUILayout.Space(2f); DrawLine(C_ICE, 0.25f); GUILayout.Space(8f); string equippedSledName = GetEquippedSledName(); GUILayout.BeginHorizontal((Il2CppReferenceArray)null); GUILayout.Label("Current sled :", _labelStyle, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(115f) }); GUIStyle val = new GUIStyle(_labelStyle); val.normal.textColor = C_ICE; val.fontStyle = (FontStyle)1; GUIStyle val2 = val; GUILayout.Label(equippedSledName, val2, (Il2CppReferenceArray)null); GUILayout.EndHorizontal(); GUILayout.Space(10f); DrawLine(C_ICE_DIM, 0.15f); GUILayout.Space(8f); GUILayout.Label("XP amount", _labelStyle, (Il2CppReferenceArray)null); GUILayout.Space(4f); _xpInput = GUILayout.TextField(_xpInput, _inputStyle, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(38f) }); GUILayout.Space(6f); GUILayout.BeginHorizontal((Il2CppReferenceArray)null); if (GUILayout.Button("+100", _btnSecondary, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _xpInput = "100"; } if (GUILayout.Button("+500", _btnSecondary, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _xpInput = "500"; } if (GUILayout.Button("+1000", _btnSecondary, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _xpInput = "1000"; } if (GUILayout.Button("+5000", _btnSecondary, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _xpInput = "5000"; } GUILayout.EndHorizontal(); GUILayout.Space(10f); if (GUILayout.Button("Add XP to sled", _btnPrimary, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(46f) })) { AddSledXp(); } GUILayout.Space(8f); DrawLine(C_ICE, 0.2f); GUILayout.Space(6f); _statusStyle.normal.textColor = _statusColor; GUILayout.Label(string.IsNullOrEmpty(_status) ? " " : _status, _statusStyle, (Il2CppReferenceArray)null); GUILayout.Space(4f); DrawLine(C_ICE_DIM, 0.1f); GUILayout.Space(4f); GUILayout.Label("F5 to close", _labelCenterStyle, (Il2CppReferenceArray)null); GUILayout.Space(6f); GUI.DragWindow(); } private void DrawLine(Color col, float alpha) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) Color color = GUI.color; GUI.color = new Color(col.r, col.g, col.b, alpha); GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.ExpandWidth(true), GUILayout.Height(1f) }); GUI.color = color; } private string GetEquippedSledName() { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Unknown result type (might be due to invalid IL or missing references) try { PlayerSavedStats stats = GetStats(); if (stats != null) { SledType equippedSled = stats.EquippedSled; return ((object)(SledType)(ref equippedSled)).ToString(); } } catch { } return "—"; } private void AddSledXp() { //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) try { if (!long.TryParse(_xpInput, out var result)) { Status("Invalid number", success: false); return; } PlayerSavedStats stats = GetStats(); if (stats == null) { Status("Stats is null — start a game first", success: false); return; } SledType equippedSled; try { equippedSled = stats.EquippedSled; } catch { Status("Could not read EquippedSled", success: false); return; } Type type = ((object)stats).GetType(); MethodInfo methodInfo = null; MethodInfo[] methods = type.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (MethodInfo methodInfo2 in methods) { if (!(methodInfo2.Name != "AddPointsToSledLevel") && methodInfo2.GetParameters().Length == 2) { methodInfo = methodInfo2; break; } } if (methodInfo == null) { Status("AddPointsToSledLevel not found", success: false); return; } ParameterInfo parameterInfo = methodInfo.GetParameters()[1]; object obj2 = ((parameterInfo.ParameterType == typeof(int)) ? ((object)(int)result) : ((parameterInfo.ParameterType == typeof(ulong)) ? ((object)(ulong)result) : ((object)result))); methodInfo.Invoke(stats, new object[2] { equippedSled, obj2 }); try { MethodInfo method = type.GetMethod("GetSledLevel", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); if (method != null) { object value = method.Invoke(stats, new object[1] { equippedSled }); Status($"+{result} XP -> Level {value} ({equippedSled})", success: true); return; } } catch { } Status($"+{result} XP added ({equippedSled})", success: true); } catch (Exception ex) { Status("Error: " + ex.Message, success: false); } } private PlayerSavedStats GetStats() { if (_statsCache != null) { try { _ = _statsCache.PointsCurrent; return _statsCache; } catch { _statsCache = null; } } try { Il2CppReferenceArray val = Object.FindObjectsOfType(Il2CppType.Of()); if (val != null && ((Il2CppArrayBase)(object)val).Length > 0) { PlayerPrefsManager val2 = ((Il2CppObjectBase)((Il2CppArrayBase)(object)val)[0]).Cast(); if (((val2 != null) ? val2.playerSavedStats : null) != null) { _statsCache = val2.playerSavedStats; return _statsCache; } } } catch { } try { Il2CppReferenceArray val3 = Object.FindObjectsOfType(Il2CppType.Of()); if (val3 != null && ((Il2CppArrayBase)(object)val3).Length > 0) { _statsCache = ((Il2CppObjectBase)((Il2CppArrayBase)(object)val3)[0]).Cast(); return _statsCache; } } catch { } return null; } private void Status(string msg, bool success) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) _status = msg; _statusColor = (success ? C_GREEN_OK : C_RED_ERR); MelonLogger.Msg(msg); } private void InitStyles() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Expected O, but got Unknown //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014b: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Expected O, but got Unknown //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Unknown result type (might be due to invalid IL or missing references) //IL_0194: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Expected O, but got Unknown //IL_0204: Expected O, but got Unknown //IL_020f: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Unknown result type (might be due to invalid IL or missing references) //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Unknown result type (might be due to invalid IL or missing references) //IL_029f: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Expected O, but got Unknown //IL_02b5: Expected O, but got Unknown //IL_02c0: Unknown result type (might be due to invalid IL or missing references) //IL_02c5: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02db: Unknown result type (might be due to invalid IL or missing references) //IL_02e1: Unknown result type (might be due to invalid IL or missing references) //IL_02eb: Unknown result type (might be due to invalid IL or missing references) //IL_02f3: Unknown result type (might be due to invalid IL or missing references) //IL_0302: Unknown result type (might be due to invalid IL or missing references) //IL_0308: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_0329: Unknown result type (might be due to invalid IL or missing references) //IL_032f: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_0341: Unknown result type (might be due to invalid IL or missing references) //IL_0350: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_035f: Expected O, but got Unknown //IL_0364: Expected O, but got Unknown //IL_036f: Unknown result type (might be due to invalid IL or missing references) //IL_0374: Unknown result type (might be due to invalid IL or missing references) //IL_037c: Unknown result type (might be due to invalid IL or missing references) //IL_0383: Unknown result type (might be due to invalid IL or missing references) //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_0391: Unknown result type (might be due to invalid IL or missing references) //IL_0397: Unknown result type (might be due to invalid IL or missing references) //IL_03a6: Expected O, but got Unknown if (!_stylesInit) { _stylesInit = true; Texture2D background = MakeTex(1, 1, C_BG); GUI.skin.window.normal.background = background; GUI.skin.window.onNormal.background = background; GUI.skin.window.padding = new RectOffset(14, 14, 10, 12); GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 20, fontStyle = (FontStyle)1, alignment = (TextAnchor)4 }; val.normal.textColor = C_SNOW; _titleStyle = val; GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 11, alignment = (TextAnchor)4 }; val2.normal.textColor = C_ICE_DIM; _subtitleStyle = val2; GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontSize = 12 }; val3.normal.textColor = C_FROST; _labelStyle = val3; GUIStyle val4 = new GUIStyle(GUI.skin.label) { fontSize = 10, alignment = (TextAnchor)4 }; val4.normal.textColor = C_ICE_DIM; _labelCenterStyle = val4; GUIStyle val5 = new GUIStyle(GUI.skin.label) { fontSize = 13, fontStyle = (FontStyle)1, alignment = (TextAnchor)4, wordWrap = false, richText = false }; val5.normal.textColor = C_PINE; _monoStyle = val5; GUIStyle val6 = new GUIStyle(GUI.skin.textField) { fontSize = 18, fontStyle = (FontStyle)1, alignment = (TextAnchor)4 }; val6.normal.textColor = C_SNOW; val6.normal.background = MakeTex(1, 1, C_PANEL_LT); val6.focused.textColor = C_SNOW; val6.focused.background = MakeTex(1, 1, C_PANEL_LT); val6.padding = new RectOffset(8, 8, 6, 6); _inputStyle = val6; GUIStyle val7 = new GUIStyle(GUI.skin.button) { fontSize = 15, fontStyle = (FontStyle)1, alignment = (TextAnchor)4 }; val7.normal.textColor = C_SNOW; val7.normal.background = MakeTex(1, 1, C_PINE); val7.hover.textColor = C_SNOW; val7.hover.background = MakeTex(1, 1, C_PINE_HOV); val7.active.textColor = C_SNOW; val7.active.background = MakeTex(1, 1, C_PINE_ACT); val7.padding = new RectOffset(10, 10, 8, 8); _btnPrimary = val7; GUIStyle val8 = new GUIStyle(GUI.skin.button) { fontSize = 11, fontStyle = (FontStyle)1, alignment = (TextAnchor)4 }; val8.normal.textColor = C_ICE; val8.normal.background = MakeTex(1, 1, C_PANEL_LT); val8.hover.textColor = C_SNOW; val8.hover.background = MakeTex(1, 1, C_ICE_DIM); val8.active.textColor = C_SNOW; val8.active.background = MakeTex(1, 1, C_ICE); val8.padding = new RectOffset(6, 6, 4, 4); _btnSecondary = val8; GUIStyle val9 = new GUIStyle(GUI.skin.label) { fontSize = 12, fontStyle = (FontStyle)1, alignment = (TextAnchor)4, wordWrap = true }; val9.normal.textColor = C_SNOW; _statusStyle = val9; } } private static Texture2D MakeTex(int w, int h, Color col) { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Expected O, but got Unknown Color[] array = (Color[])(object)new Color[w * h]; for (int i = 0; i < array.Length; i++) { array[i] = col; } Texture2D val = new Texture2D(w, h); val.SetPixels(Il2CppStructArray.op_Implicit(array)); val.Apply(); return val; } }