22 lines
627 B
C#
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);
|
|
}
|
|
}
|
|
}
|