race condition?: 2 class, 1 gameobject w/OnTriggerEnter, do all function calls execute in B if destroy gameobject in A?

Scenario details:

  • 1 GameObject has 2 classes attached, Class A & Class B, and obviously a trigger collider
  • Class A has OnTriggerEnter where it executes Destroy(gameObject)
  • Class B has OnTriggerEnter where it executes something

Upon trigger enter event, will everything in OnTriggerEnter in Class B get executed every time guaranteed?

I ended up using inheritance. I thought there might be an issue if I used inheritance because of what I was doing but actually was not a problem.

Unsure if it is a race condition.