I need some help with this GetCompnent peice of code:
if(hit.GameObject.tag == "Head")
Enemy.GetComponent(dead) = true;
I am afraid that I don't know anything about GetCompnent, and after a long time trying to figure this puzzle out, I have not gotten anywhere.
*EDIT*
This is my own script. It uses raycast as bullets, and hit is the variable used in the raycast function.
↧