Добавляю машины и настраиваю их
This commit is contained in:
1 parent
1c106ea853
commit
a8238ab49e
363 files changed
+54820
-687
No files matched your search
@@ -13,7 +13,7 @@ public class PlayerInteractor : MonoBehaviour
|
||||
// Пускаем луч из центра экрана
|
||||
Ray ray = new Ray(transform.position, transform.forward);
|
||||
|
||||
if (Physics.Raycast(ray, out RaycastHit hit, interactRange, interactableLayer))
|
||||
if (Physics.Raycast(ray, out RaycastHit hit, interactRange, interactableLayer, QueryTriggerInteraction.Collide))
|
||||
{
|
||||
IInteractable interactable = hit.collider.GetComponentInParent<IInteractable>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user