2026-04-20 카트 잡기
This commit is contained in:
16
Assets/02_Scripts/Player/RideDetectionZone.cs
Normal file
16
Assets/02_Scripts/Player/RideDetectionZone.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class RideDetectionZone : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private RideController _ride;
|
||||
|
||||
private void OnTriggerStay(Collider other)
|
||||
{
|
||||
if (_ride != null) _ride.OnDetectionStay(other);
|
||||
}
|
||||
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
if (_ride != null) _ride.OnDetectionExit(other);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user