2022-12-17 11:55:01 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2022-11-14 12:15:32 +03:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace Syntriax.Modules.Trigger
|
|
|
|
{
|
2022-12-17 14:39:54 +03:00
|
|
|
public interface IColliderTrigger : ITriggerArea
|
2022-11-14 12:15:32 +03:00
|
|
|
{
|
2022-12-17 11:55:01 +03:00
|
|
|
/// <summary>
|
|
|
|
/// <see cref="LayerMask"/> value for checking triggers
|
|
|
|
/// </summary>
|
2022-11-14 12:15:32 +03:00
|
|
|
LayerMask ColliderMask { get; set; }
|
2022-12-17 11:55:01 +03:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Called whenever the list of <see cref="Collider2D"/> changes
|
|
|
|
/// </summary>
|
|
|
|
/// <value>List of <see cref="Collider2D"/> that triggered the <see cref="IColliderTrigger"/></value>
|
|
|
|
Action<List<Collider2D>> OnTriggeredCollidersUpdated { get; set; }
|
2022-11-14 12:15:32 +03:00
|
|
|
}
|
|
|
|
}
|