mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
5c04b84108
commit
fc0a40f802
@ -69,7 +69,7 @@ internal static int FindPlayerLoopEntryIndex(PlayerLoopSystem.UpdateFunction fun
|
||||
// recursively keep looking
|
||||
if (playerLoop.subSystemList != null)
|
||||
{
|
||||
for(int i = 0; i < playerLoop.subSystemList.Length; ++i)
|
||||
for (int i = 0; i < playerLoop.subSystemList.Length; ++i)
|
||||
{
|
||||
int index = FindPlayerLoopEntryIndex(function, playerLoop.subSystemList[i], playerLoopSystemType);
|
||||
if (index != -1) return index;
|
||||
@ -128,7 +128,6 @@ internal static bool AddToPlayerLoop(PlayerLoopSystem.UpdateFunction function, T
|
||||
// shift to the right, write into first array element
|
||||
Array.Copy(playerLoop.subSystemList, 0, playerLoop.subSystemList, 1, playerLoop.subSystemList.Length - 1);
|
||||
playerLoop.subSystemList[0] = system;
|
||||
|
||||
}
|
||||
// append our custom loop to the end
|
||||
else if (addMode == AddMode.End)
|
||||
@ -148,7 +147,7 @@ internal static bool AddToPlayerLoop(PlayerLoopSystem.UpdateFunction function, T
|
||||
// recursively keep looking
|
||||
if (playerLoop.subSystemList != null)
|
||||
{
|
||||
for(int i = 0; i < playerLoop.subSystemList.Length; ++i)
|
||||
for (int i = 0; i < playerLoop.subSystemList.Length; ++i)
|
||||
{
|
||||
if (AddToPlayerLoop(function, ownerType, ref playerLoop.subSystemList[i], playerLoopSystemType, addMode))
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user