Event Manager fixes

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

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