Hi,
I an not saying you have to change
,
but as you said you want to use playmaker for it i am trying to say it is not that hard. it is just a different way.
And from what i understand with gameflow, you have a "detect ray" on each object (200 scripts)?
If so i don't think that this is a optimal way doing something like that.
What are you doing with the object when you hit it?
A common way using the ray cast action is,
start raycast :
When it hits an object, store it in a variable,
next state :
(for example) Destroy the selected object.
so only 1 FSM (script) and 2 actions are needed to do this.
The layer part is to detect only certain layers.
You can use that part in 2 ways, include layer or exclude layers.
To exclude layers you need check invert layer mask.
So for example you can make a 'player' layer and a 'floor' layer, place them in the raycast and check invert layer mask.
For your objects you do not need 200 layers probably, you just need 1 layer 'enemies' (for example)