mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-03 16:13:25 +08:00
Fix patch target on Time.timeScale
This commit is contained in:
parent
bf2b22e768
commit
97dffc81e1
@ -14,7 +14,7 @@ namespace UnityExplorer
|
|||||||
public static class ExplorerCore
|
public static class ExplorerCore
|
||||||
{
|
{
|
||||||
public const string NAME = "UnityExplorer";
|
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 AUTHOR = "Sinai";
|
||||||
public const string GUID = "com.sinai.unityexplorer";
|
public const string GUID = "com.sinai.unityexplorer";
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
MethodInfo target = AccessTools.Method(typeof(Time), nameof(Time.timeScale));
|
MethodInfo target = typeof(Time).GetProperty("timeScale").GetSetMethod();
|
||||||
#if CPP
|
#if CPP
|
||||||
if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(target) == null)
|
if (UnhollowerBaseLib.UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(target) == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user