i have one script. but a dont now how to do that:
if i colide with a game object with one tag, he shows a gui button for me
what is wrong?
can you fiz it to me?(i am a noob)
i have other question.
can i put images on my gui button?
whats the script to i do that?
my script:
#pragma strict
var shop : boolean = false;
function Start () {
}
function Update () {
}
function OnCollisionEnter(hit: Collision){
if(hit.gameObject.tag == "shop"){
shop = !shop;
if (GUI.Button(Rect(100,150,50,25), "Skills")){}
}
}