problem with Raygun

i have made a raygun for my cartoony zombie game but every time i run the game disappears and the raygun prefab in the hierarchy view becomes gray along with everything in it

i dunno how to solve it, plz help me

1 Answer

1

It sounds that your raygun GameObject is disabled or deactivated by script, something like:

raygun.active = false; 
//or
gameObject.active = false;