Fix patch target on Time.timeScale

This commit is contained in:
Sinai 2022-05-19 00:07:12 +10:00
parent bf2b22e768
commit 97dffc81e1
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace UnityExplorer
public static class ExplorerCore
{
public const string NAME = "UnityExplorer";
public const string VERSION = "4.8.1";
public const string VERSION = "4.8.2";
public const string AUTHOR = "Sinai";
public const string GUID = "com.sinai.unityexplorer";

View File

@ -97,7 +97,7 @@ namespace UnityExplorer.UI.Widgets
try
{
MethodInfo target = AccessTools.Method(typeof(Time), nameof(Time.timeScale));
MethodInfo target = typeof(Time).GetProperty("timeScale").GetSetMethod();
#if CPP
if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(target) == null)
return;