Hi!
I wan't to program behaviour of minions/workers. They have 2 (in future 3 or more) behaviours: Idle/wandering (when they going around in random positions, simply creating Empty, move towards, and then delete Empty), and Collecting, when on trigger event they go for pickup and temporary just by now, destroing that pickup.
When they collect pickup, and no other pickup is near, they go again in wandering state.
I have 3 FSMs on worker/minion: Behaviour, Wander and Collect. They talk to each other by global events.
After few days (!) I can't figure it out, how to do it. I think, I must missing something obvious, because FSMs standalone works well. Ok, 2 of them: Wander and Collect. I can't make Behaviour FSM to do his job.
I was trying and test almost everything what I can imagine. Fliping every "Every frame" in every configurations, trying debug, looking for clues in Variables in inspector and so on. I try to put every trigger actions on separate states, and today I end up with big (to big for this kind of simple logic switch) mess.
Please, give me some advice, tutorial link or just draw the graph. Thank You!
/sorry for bad english