Revert "Merge branch 'main' of https://gitfrieds.nackenbox.xyz/MeigoFried/GameVsJam"
This reverts commit7a477817fe, reversing changes made to7c127ac68e.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user