Now I have got this but it continues not working.
My gun shots and if ray cast find ant object it sends an event to go to Hit or Get Layer
I get the layer and it stores it on an integer. Next it will switch the result to another Materials (wood, water, concrete,ect) and it should go to the event.Which is an global transition.
My problem is the get property because I put my ground concrete and it doesn´t put number 1.
Please help me.