Event Manager fixes

This commit is contained in:
Alexander Filippov committed 2021-08-16 16:05:42 +02:00
1 parent b0ba9167cf
commit 963d166bff
2 files changed
+43 -10

No files matched your search

+39 -6
View File
@@ -28,19 +28,52 @@ namespace Utils
OnLateUpdated?.Invoke();
}
public int UpdateLength()
public int UpdateLength
{
return (int)OnUpdated?.GetInvocationList().Length;
get
{
var list = OnUpdated?.GetInvocationList();
if (list != null)
{
return list.Length;
}
else
{
return 0;
}
}
}
public int FixedUpdateLength()
public int FixedUpdateLength
{
return (int)OnFixedUpdated?.GetInvocationList().Length;
get
{
var list = OnFixedUpdated?.GetInvocationList();
if (list != null)
{
return list.Length;
}
else
{
return 0;
}
}
}
public int LateUpdateLength()
public int LateUpdateLength
{
return (int)OnLateUpdated?.GetInvocationList().Length;
get
{
var list = OnLateUpdated?.GetInvocationList();
if (list != null)
{
return list.Length;
}
else
{
return 0;
}
}
}
}
}