using UnityEngine;
using VOID.Generic.Objects.Abstract;

namespace VOID.Generic.Triggers
{
    /// <summary>
    /// This interface allow <see cref="AbstractObject"/> to call <see cref="OnObjectEnter"/> and <see cref="OnObjectExit"/>.<br/>
    /// Implementing component need to be placed on one of layers: <see cref="LayerManager.Dynamic"/> or <see cref="LayerManager.Trigger"/>.<br/>
    /// Setting <see cref="Collider"/>'s <see cref="Collider.isTrigger"/> to true is required!<br/>
    /// </summary>
    public interface IDynamicTrigger
    {
        public void OnObjectEnter(AbstractObject obj);
        public void OnObjectExit(AbstractObject obj);
    }
}