mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-14 15:46:36 +08:00
Cleanup, use Time.realTimeSinceStartup instead of Time.time, add some stuff
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user