Interface IInteractable
Assembly: Dew.Core.dll
Syntax
public interface IInteractable
Properties
canInteractWithMouse
Declaration
bool canInteractWithMouse { get; }
Property Value
focusDistance
Declaration
float focusDistance { get; }
Property Value
interactPivot
Declaration
Transform interactPivot { get; }
Property Value
| Type |
Description |
| UnityEngine.Transform |
|
priority
Lower values are prioritized
Declaration
Property Value
Methods
CanInteract(Entity)
Can this object be interacted by given entity? Checked everywhere, hence this should return consistent results regardless of caller.
Declaration
bool CanInteract(Entity entity)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
Returns
OnInteract(Entity, bool)
Called everywhere when an entity interacts with an interactable.
Declaration
void OnInteract(Entity entity, bool alt)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| bool |
alt |
|