Compare commits

..

No commits in common. "bf75b5308679f815769415e468def431b2d6bbd3" and "ac1cdfec18463a660dff0b7b89d00db0a581abc2" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -6,12 +6,10 @@ namespace Syntriax.Modules.Trigger
{ {
public abstract class ColliderTriggerAreaBase : MonoBehaviour, IColliderTriggerArea public abstract class ColliderTriggerAreaBase : MonoBehaviour, IColliderTriggerArea
{ {
[SerializeField] private LayerMask colliderMask = ~0;
protected Collider2D[] nonAllocResults = new Collider2D[32]; protected Collider2D[] nonAllocResults = new Collider2D[32];
protected int previousTriggerCount = 0; protected int previousTriggerCount = 0;
public LayerMask ColliderMask { get => colliderMask; set => colliderMask = value; } public LayerMask ColliderMask { get; set; } = ~0;
public Action<List<Collider2D>> OnTriggeredCollidersUpdated { get; set; } = null; public Action<List<Collider2D>> OnTriggeredCollidersUpdated { get; set; } = null;
public List<Collider2D> ColliderList { get; protected set; } = new List<Collider2D>(32); public List<Collider2D> ColliderList { get; protected set; } = new List<Collider2D>(32);

View File

@ -1,6 +1,6 @@
{ {
"name": "com.syntriax.trigger", "name": "com.syntriax.trigger",
"version": "0.5.0", "version": "0.4.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",