added: full logic and ability for downing and picking up allies
This commit is contained in:
@@ -157,7 +157,8 @@ public class EnvironmentObserver{
|
||||
}
|
||||
|
||||
if (hit.transform != null) {
|
||||
if (hit.transform.GetComponent<IInteractable>() != null) {
|
||||
IInteractable interactable = hit.transform.GetComponent<IInteractable>();
|
||||
if (interactable != null && interactable.CanInteract()) {
|
||||
hit.transform.GetComponent<IInteractable>().OnObserverDetected(this);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user