added: checking if IInteractable is interactable added
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
public interface IInteractable{
|
public interface IInteractable{
|
||||||
public void Interact();
|
public void Interact();
|
||||||
|
public bool CanInteract();
|
||||||
public void CancelInteract();
|
public void CancelInteract();
|
||||||
public void OnObserverDetected(EnvironmentObserver observer);
|
public void OnObserverDetected(EnvironmentObserver observer);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,10 @@ namespace Reset.Items{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool CanInteract(){
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
IEnumerator SpawnItems(){
|
IEnumerator SpawnItems(){
|
||||||
for (int i = 0; i < Random.Range(minItemsToSpawn, maxItemsToSpawn); i++) {
|
for (int i = 0; i < Random.Range(minItemsToSpawn, maxItemsToSpawn); i++) {
|
||||||
|
|||||||
@@ -29,6 +29,10 @@ namespace Reset.Items{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool CanInteract(){
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
public void CancelInteract(){
|
public void CancelInteract(){
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user