mirror of
https://git.shazbot.fr/shazbot/Utils.git
synced 2026-01-12 21:20:58 +01:00
Update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user