add project files
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class TriggerMovingPlatformeHandler : MonoBehaviour
|
||||
{
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
TriggerMovingPlatforme trigger = other.GetComponentInParent<TriggerMovingPlatforme>();
|
||||
if (trigger != null)
|
||||
{
|
||||
trigger.ActiveObstacle();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user