Using OnTriggerEnter outside of MonoBehaviour
How possible is this? I'm using a finite state machine to determine actions of a fish. Collisions were fine in the MonoBehaviour script - obviously - but I'd like to move the OnTriggerEnter function to the relevant state script which isn't MonoBehaviour. Everything else is neat and encapsulated apart from the OnTriggerEnter - it's not a necessity, but it would be interesting to know if it's possible.
Thanks in advance. :)
Your answer
Follow this Question
Related Questions
OnTriggerEnter only works on one collision? 0 Answers
Lose Health when GameObject enters collider? (OnTriggerEnter) 2 Answers
I have two different objects I would like to check when A and B gameObjects are collided ? 1 Answer
Trigger not detected 0 Answers
Changing light color between players when they collide (BOLT) 0 Answers