Move events to App class.

This commit is contained in:
2025-08-17 06:43:30 +02:00
parent dbac051fc2
commit 5f0b8a2a11
13 changed files with 65 additions and 62 deletions

View File

@@ -9,13 +9,13 @@ namespace Utils.Editor
{
public override void OnInspectorGUI()
{
Event("EarlyUpdate", EventManager.EarlyUpdateLength, EventManager.EarlyUpdateDelegates);
Event("EarlyUpdate", App.EarlyUpdateLength, App.EarlyUpdateDelegates);
EditorGUILayout.Space();
Event("Update", EventManager.UpdateLength, EventManager.UpdateDelegates);
Event("Update", App.UpdateLength, App.UpdateDelegates);
EditorGUILayout.Space();
Event("LateUpdate", EventManager.LateUpdateLength, EventManager.LateUpdateDelegates);
Event("LateUpdate", App.LateUpdateLength, App.LateUpdateDelegates);
EditorGUILayout.Space();
Event("LastUpdate", EventManager.LastUpdateLength, EventManager.LastUpdateDelegates);
Event("LastUpdate", App.LastUpdateLength, App.LastUpdateDelegates);
}
private void Event(string title, int length, Delegate[] delegates)