projectEli/Assets/NeoFPS/Core/Interaction/IInteractiveObject.cs

22 lines
491 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using UnityEngine;
using UnityEngine.Events;
namespace NeoFPS
{
public interface IInteractiveObject
{
string tooltipName { get; }
string tooltipAction { get; }
event UnityAction onTooltipChanged;
event UnityAction onUsed;
event UnityAction onCursorEnter;
event UnityAction onCursorExit;
bool highlighted { get; set; }
bool interactable { get; set; }
float holdDuration { get; }
void Interact (ICharacter character);
}
}