Compare commits

..

No commits in common. "1f36b44cfdc86be375333f23bc971ace3245cde4" and "a8acea415108c88d6b98a6866441e8e811405a0f" have entirely different histories.

1 changed files with 1 additions and 13 deletions

View File

@ -21,7 +21,7 @@ namespace Syntriax.Modules.Trigger
{
int triggerCount = TriggerCount;
if (!IsArrayAndListIdentical(triggerCount))
if (triggerCount != previousTriggerCount)
{
ColliderList.Clear();
for (int i = 0; i < triggerCount; i++)
@ -33,17 +33,5 @@ namespace Syntriax.Modules.Trigger
previousTriggerCount = triggerCount;
return triggerCount > 0;
}
private bool IsArrayAndListIdentical(int triggerCount)
{
if (previousTriggerCount != triggerCount)
return false;
for (int i = 0; i < triggerCount; i++)
if (!ColliderList.Contains(nonAllocResults[i]))
return false;
return true;
}
}
}