mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-02 03:22:41 +08:00
Fix patch target on Time.timeScale
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user