/*
* author: mark joshwel
* date: 10/8/2024
* description: trigger to detect if the player has jumped out of play area
*/
using UnityEngine;
///
/// detection behaviour class
///
public class AerialFaithLeapTrigger : MonoBehaviour
{
///
/// bool to check if player is airborne
///
public bool isPlayerInAir;
///
/// detect if player has jumped out of the trigger
///
/// colliding game object
private void OnTriggerExit(Collider other)
{
if (!other.CompareTag("Player")) return;
isPlayerInAir = true;
Debug.Log("AerialFaithLeapTrigger: player is airborne");
}
}