This reverts commit 7a477817fe, reversing
changes made to 7c127ac68e.
This commit is contained in:
jankaminski1
2024-04-07 15:57:24 +02:00
parent 7a477817fe
commit a27478b727
33 changed files with 442 additions and 2659 deletions

View File

@ -1,26 +0,0 @@
using UnityEngine;
namespace Interaction
{
public class CoffeePlace : MonoBehaviour
{
[SerializeField]
private BoxCollider _boxCollider;
public bool IsFree()
{
Collider[] colliders = Physics.OverlapBox(_boxCollider.bounds.center, _boxCollider.bounds.extents);
foreach (Collider c in colliders)
{
// Solbald ein Collider eines Rigidbodies im Weg ist sagen wir, dass wir nichts spawnen können
if (!c.isTrigger && c.attachedRigidbody)
{
return false;
}
}
return true;
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 08ef16f17f8a4392aa964ae6972b86bd
timeCreated: 1712493618