14 lines
283 B
C#
14 lines
283 B
C#
using UnityEngine;
|
|
|
|
public class TriggerMovingPlatformeHandler : MonoBehaviour
|
|
{
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
TriggerMovingPlatforme trigger = other.GetComponentInParent<TriggerMovingPlatforme>();
|
|
if (trigger != null)
|
|
{
|
|
trigger.ActiveObstacle();
|
|
}
|
|
}
|
|
}
|