20 lines
362 B
C#
20 lines
362 B
C#
![]() |
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace DDD
|
||
|
{
|
||
|
public enum InteractionType
|
||
|
{
|
||
|
Default
|
||
|
}
|
||
|
public interface IInteractable
|
||
|
{
|
||
|
bool CanInteract();
|
||
|
void OnInteracted(IInteractor interactor);
|
||
|
}
|
||
|
public interface IInteractor
|
||
|
{
|
||
|
void TryInteract(InteractionType interactionType);
|
||
|
}
|
||
|
}
|