Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

GetComponent

$
0
0
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.

Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>