Compare commits

...

3 Commits

Author SHA1 Message Date
Syntriax 01c76e36ad 5.1.0 2022-12-17 22:45:25 +03:00
Syntriax 1f36b44cfd Merge branch 'development' 2022-12-17 22:44:54 +03:00
Syntriax a4fd3343b1 Check Fix 2022-12-17 22:44:44 +03:00
2 changed files with 14 additions and 2 deletions

View File

@ -21,7 +21,7 @@ namespace Syntriax.Modules.Trigger
{
int triggerCount = TriggerCount;
if (triggerCount != previousTriggerCount)
if (!IsArrayAndListIdentical(triggerCount))
{
ColliderList.Clear();
for (int i = 0; i < triggerCount; i++)
@ -33,5 +33,17 @@ 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;
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "com.syntriax.trigger",
"version": "0.5.0",
"version": "0.5.1",
"displayName": "Trigger Module",
"unity": "2019.1",
"documentationUrl": "https://git.syntriax.com/Syntriax/Trigger.git",