23 lines
474 B
C#
Raw Permalink Normal View History

2025-10-08 16:31:53 +08:00
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");
}
}