This commit is contained in:
Alexander Filippov
2022-03-02 01:12:44 +01:00
parent 963d166bff
commit 029e02fd2f
8 changed files with 18 additions and 35 deletions

View File

@ -28,51 +28,30 @@ namespace Utils
OnLateUpdated?.Invoke();
}
public int UpdateLength
public static int UpdateLength
{
get
{
var list = OnUpdated?.GetInvocationList();
if (list != null)
{
return list.Length;
}
else
{
return 0;
}
return list?.Length ?? 0;
}
}
public int FixedUpdateLength
public static int FixedUpdateLength
{
get
{
var list = OnFixedUpdated?.GetInvocationList();
if (list != null)
{
return list.Length;
}
else
{
return 0;
}
return list?.Length ?? 0;
}
}
public int LateUpdateLength
public static int LateUpdateLength
{
get
{
var list = OnLateUpdated?.GetInvocationList();
if (list != null)
{
return list.Length;
}
else
{
return 0;
}
return list?.Length ?? 0;
}
}
}