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

@ -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;