In my game when player stay inside the trigger, I have event OnTrigerStay and I have a variable:
void OnTriggerStay() {
isInsideTrigger = true;
}
But when player teleports to another location, I can’t catch this event, because OnTriggerExit doesn’t works here. How can I check, when palyer doesn’t inside the trigger and make:
isInsideTrigger = false;