The problem:
I want to have bolt staying put and wait for an event to get fired by some other place in the game scene. Then when the event fired, bolt will do something.
I’ve tried searching the forum and internet, no luck in an answer.
What I’ve found is this asset
which does exactly what I’m asking except it doesn’t. Because the way it works is by manually tying in a script that send the event into the “On Unity Event” node.
So for each of these “On Unity Event” nodes you need a separate script tied in.
Boh.
If I need to write a custom script for all events that bolt needs to listen to I’m not doing any decoupling in the code.
I want bolt to listen to an event, defined by a simple string, the event name, and then do something.
I see waves of places where this “wait for event then do something” could be useful and now I’m puzzled because:
a. is a mistake what I’m trying to do? Have event fired and then bolt will do something is somehow wrong?
b. I can’t believe bolt is not able to do this. Maybe it can do it but I’m not able to find the answer. Must be something simple that I’m missing.