20 lines
361 B
C#
20 lines
361 B
C#
using UnityEngine;
|
|
|
|
public class AudioCollider : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
|
|
private void OnCollisionEnter2D(Collision2D collision)
|
|
{
|
|
|
|
|
|
}
|
|
|
|
private void OnTriggerEnter2D(Collider2D collision)
|
|
{
|
|
Debug.Log("He's here!");
|
|
}
|
|
|
|
|
|
}
|