Cleanup, use Time.realTimeSinceStartup instead of Time.time, add some stuff

This commit is contained in:
Sinai
2021-05-03 21:02:01 +10:00
parent ad61ff243a
commit 8d9d8f76c2
22 changed files with 321 additions and 198 deletions

View File

@ -76,9 +76,9 @@ namespace UnityExplorer.UI.Inspectors
return;
}
if (Time.time - timeOfLastUpdate > 1f)
if (timeOfLastUpdate.OccuredEarlierThan(1))
{
timeOfLastUpdate = Time.time;
timeOfLastUpdate = Time.realtimeSinceStartup;
// Refresh children and components
TransformTree.RefreshData(true, false);