Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Change something in this script

$
0
0
Hey Guys, like my name, i'm brazilian :p so i don't speak english so good ( I'm not using google translator).Sorry if I wrong something. anyway i want to change somethings in this script : var cube : Transform; var gutext : GUIText; function Update () { var dist : float = Vector3.Distance(cube.position, transform.position); if(dist<10){ gutext.text="Look Out!"; } else { gutext.text=""; } } I want to change the "Transform" to "Tag". the name of this tag is "enemy"

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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