Trigger/Runtime/IColliderTrigger.cs

21 lines
626 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2022-11-14 12:15:32 +03:00
using UnityEngine;
namespace Syntriax.Modules.Trigger
{
public interface IColliderTrigger : ITrigger
{
/// <summary>
/// <see cref="LayerMask"/> value for checking triggers
/// </summary>
2022-11-14 12:15:32 +03:00
LayerMask ColliderMask { get; set; }
/// <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
}
}