private void OnTriggerExit(Collider other) { OnTriggerExitHandler?.Invoke(other); if (_cacheCollisions) { _colliders.Remove(other); } }
private void OnTriggerEnter(Collider other) { OnTriggerEnterHandler?.Invoke(other); if (_cacheCollisions) { _colliders.Add(other); } }
private void OnTriggerStay(Collider other) { OnTriggerStayHandler?.Invoke(other); }
private void OnTriggerEnter(Collider other) { OnColliderEvent?.Invoke(other); }