23 lines
474 B
C#
23 lines
474 B
C#
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Unity.VisualScripting;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class BuildCollider : MonoBehaviour
|
||
|
|
{
|
||
|
|
private void OnTriggerEnter2D(Collider2D other)
|
||
|
|
{
|
||
|
|
Debug.Log("Collision Enter" );
|
||
|
|
}
|
||
|
|
|
||
|
|
private void OnTriggerStay2D(Collider2D other)
|
||
|
|
{
|
||
|
|
Debug.Log("Collision Stay");
|
||
|
|
}
|
||
|
|
|
||
|
|
private void OnTriggerExit2D(Collider2D other)
|
||
|
|
{
|
||
|
|
Debug.Log("Collision Exit");
|
||
|
|
}
|
||
|
|
}
|