Compare commits
No commits in common. "01c76e36ad7e61e2985e68e59c1b7fa2bb9c79d4" and "bf75b5308679f815769415e468def431b2d6bbd3" have entirely different histories.
01c76e36ad
...
bf75b53086
|
@ -21,7 +21,7 @@ namespace Syntriax.Modules.Trigger
|
||||||
{
|
{
|
||||||
int triggerCount = TriggerCount;
|
int triggerCount = TriggerCount;
|
||||||
|
|
||||||
if (!IsArrayAndListIdentical(triggerCount))
|
if (triggerCount != previousTriggerCount)
|
||||||
{
|
{
|
||||||
ColliderList.Clear();
|
ColliderList.Clear();
|
||||||
for (int i = 0; i < triggerCount; i++)
|
for (int i = 0; i < triggerCount; i++)
|
||||||
|
@ -33,17 +33,5 @@ namespace Syntriax.Modules.Trigger
|
||||||
previousTriggerCount = triggerCount;
|
previousTriggerCount = triggerCount;
|
||||||
return triggerCount > 0;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.syntriax.trigger",
|
"name": "com.syntriax.trigger",
|
||||||
"version": "0.5.1",
|
"version": "0.5.0",
|
||||||
"displayName": "Trigger Module",
|
"displayName": "Trigger Module",
|
||||||
"unity": "2019.1",
|
"unity": "2019.1",
|
||||||
"documentationUrl": "https://git.syntriax.com/Syntriax/Trigger.git",
|
"documentationUrl": "https://git.syntriax.com/Syntriax/Trigger.git",
|
||||||
|
|
Loading…
Reference in New Issue