namespace Handy2DTools.CharacterController.Platformer
{
/// <summary>
/// Any GameObject that wants to controll facing direction can use an
/// event through implementing this Interface.
/// </summary>
public interface IPlatformerFacingDirectionProvider
{
GameObject gameObject { get; }
/// <summary>
/// An event wich should be fired to update facing direction
/// </summary>
/// <value> A HorizontalDirections representing the direction. </value>
UnityEvent<HorizontalDirections> HorizontalDirectionUpdate { get; }
/// <summary>
/// An event wich should be fired to update facing direction sign
/// </summary>
/// <value> A float representing the the facing direction. -1 for left and 1 for right. </value>
UnityEvent<float> HorizontalDirectionSignUpdate { get; }
}
}