diff --git a/Assets/Scripts/Core/Interfaces/IInteractable.cs b/Assets/Scripts/Core/Interfaces/IInteractable.cs index 92a61e2..d0e77e1 100644 --- a/Assets/Scripts/Core/Interfaces/IInteractable.cs +++ b/Assets/Scripts/Core/Interfaces/IInteractable.cs @@ -2,6 +2,7 @@ using UnityEngine; public interface IInteractable{ public void Interact(); + public bool CanInteract(); public void CancelInteract(); public void OnObserverDetected(EnvironmentObserver observer); } diff --git a/Assets/Scripts/Items/ItemContainer.cs b/Assets/Scripts/Items/ItemContainer.cs index d04abe2..695f821 100644 --- a/Assets/Scripts/Items/ItemContainer.cs +++ b/Assets/Scripts/Items/ItemContainer.cs @@ -46,7 +46,11 @@ namespace Reset.Items{ } } - + public bool CanInteract(){ + throw new NotImplementedException(); + } + + IEnumerator SpawnItems(){ for (int i = 0; i < Random.Range(minItemsToSpawn, maxItemsToSpawn); i++) { GameObject newDrop = Instantiate(itemDrop); diff --git a/Assets/Scripts/Items/ItemDrop.cs b/Assets/Scripts/Items/ItemDrop.cs index da7f93d..9bc42f9 100644 --- a/Assets/Scripts/Items/ItemDrop.cs +++ b/Assets/Scripts/Items/ItemDrop.cs @@ -29,6 +29,10 @@ namespace Reset.Items{ } } + public bool CanInteract(){ + throw new NotImplementedException(); + } + public void CancelInteract(){ throw new NotImplementedException(); }