void OnTriggerStayEvent_OnTriggerStayed(TriggerEnterCollider sender, Collider other) { if (_triggeringTags.Contains(other.tag)) { TriggerEvent(); } }
void OnTriggerExitEvent_OnTriggerExited(TriggerEnterCollider sender, Collider other) { if (_triggeringTags.Contains(other.tag)) { _triggeringObject = other.gameObject; TriggerEvent(); _triggeringObject = null; } }
private void TriggerSetEnterHandler(TriggerEnterCollider trigger, Collider collider) { if (gameObject.activeSelf && _triggeringTags.Contains(collider.tag)) { _trigger = trigger; _triggeringObject = collider.gameObject; TriggerEvent(); } }
void OnTriggerEnterEvent_OnTriggerEntered(TriggerEnterCollider sender, Collider other) { if (gameObject.activeSelf && _triggeringTags.Contains(other.tag)) { if (_disableColliderAfterTrigger) { sender.enabled = false; } _triggeringObject = other.gameObject; TriggerEvent(); _triggeringObject = null; } }