added: checking if IInteractable is interactable added
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
||||
|
||||
public interface IInteractable{
|
||||
public void Interact();
|
||||
public bool CanInteract();
|
||||
public void CancelInteract();
|
||||
public void OnObserverDetected(EnvironmentObserver observer);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -29,6 +29,10 @@ namespace Reset.Items{
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanInteract(){
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void CancelInteract(){
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user