Files
AppleHillsProduction/Assets/Scripts/Interactions/OneClickInteraction.cs
2025-11-01 20:52:31 +01:00

22 lines
627 B
C#

using UnityEngine;
using Input;
using Interactions;
namespace Interactions
{
/// <summary>
/// Interactable that immediately completes when the character arrives at the interaction point.
/// Useful for simple trigger interactions that don't require additional logic.
/// </summary>
public class OneClickInteraction : InteractableBase
{
/// <summary>
/// Override: Immediately completes the interaction with success when character arrives.
/// </summary>
protected override void OnCharacterArrived()
{
CompleteInteraction(true);
}
}
}