I don’t remember an object pool with the enemies or events in Realm Rush.
It depends on how you’re setting it all up. Typically all of them, but it sounds like you’re trying to set it up in a slightly odd way. I wouldn’t expect it to be the banks responsibility to chase down the enemies as it potentially sets yourself up for a cyclical dependency issue.
How I would set it up would be some sort of event that gets triggered whenever an enemy reaches their goal, say on an object with a script called ExitHandler.cs or something like that and have a public event called something like onEnemyEscape where the bank, life, mana count, score subscribes to it to let them know there’s an escape. Any time an enemy escapes, it calls something like FindObjectOfType<ExitHandler>.onEnemyEscape?.Invoke(enemyDetails);
depending on how you need to set it up. This way, you can add on extra handlers who care about enemies escaping.
If you’re not going to have more handlers, a simpler way is really to have the enemies report an escape/reached goal when they reach the end goal with a ‘FindObjectOfType().OnEnemyEscape(enemyDetails);’