Update
This commit is contained in:
1 parent
963d166bff
commit
029e02fd2f
8 files changed
+18
-35
No files matched your search
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "Agoxandr.Utils",
|
||||
"rootNamespace": "Utils",
|
||||
"references": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
File renamed without changes.
@@ -9,8 +9,8 @@ namespace Utils
|
||||
return new T[] { item };
|
||||
}
|
||||
|
||||
T[] result = new T[array.Length + 1];
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
var result = new T[array.Length + 1];
|
||||
for (var i = 0; i < array.Length; i++)
|
||||
{
|
||||
result[i] = array[i];
|
||||
}
|
||||
|
||||
+6
-27
@@ -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