2025-11-10 13:03:36 +01:00
|
|
|
using Core;
|
2025-10-20 17:05:24 +02:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class ProximitySoundReaction : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private Collider2D _collider;
|
|
|
|
|
|
|
|
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
_collider = GetComponent<Collider2D>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnCollisionEnter2D(Collision2D collision)
|
|
|
|
|
{
|
2025-11-10 13:03:36 +01:00
|
|
|
Logging.Debug("overlap!");
|
2025-10-20 17:05:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnTriggerEnter2D(Collider2D collision)
|
|
|
|
|
{
|
2025-11-10 13:03:36 +01:00
|
|
|
Logging.Debug("Wolter triggered!");
|
2025-10-20 17:05:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|