Event Manager fixes
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user