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
|
|
|
|
{
|
|
|
|
public interface IColliderTrigger : ITrigger
|
|
|
|
{
|
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
|
|
|
}
|
|
|
|
}
|