x


I destroy the object but the GUITexture did not appear

var GUIbalisong: GameObject;//guitext to

var toBEdestroyed: GameObject;// ung object na masisira

function OnTriggerEnter (other : Collider)

{

Destroy(toBEdestroyed); // call the function Show in the BalisongScript.js

GUIbalisong.enabled = true; // disable guiTexture

}

function Show() { guiTexture.enabled = true; // enable the guitexture

yield WaitForSeconds(5); // 5 seconds delay

GUIbalisong.enabled = false; // disable guiTexture

}

more ▼

asked Sep 10 '11 at 06:06 PM

larrielyn gravatar image

larrielyn
1 8 10 11

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

@larrielyn, I answered your question http://answers.unity3d.com/questions/165546/how-to-add-time-.html - it was tested and worked fine. You should post comments with add new comment in that answer instead of posting new questions, so we could analyse the problem taking all the previous history into account. It's much like going to a new doctor just because you didn't like the diagnosis of the others: you may end dead, and let a lot of doctors studying your case!
Anyway, in that answer I told you to create a script called BalisongScript.js and attach it to the GUITexture balisong. The other script should be attached to the trigger object. When the trigger object was destroyed, it would call the Show function in BalisongScript, which would show the texture for the time specified, then hide it.

more ▼

answered Sep 10 '11 at 06:23 PM

aldonaletto gravatar image

aldonaletto
42.5k 16 43 202

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x785
x589
x495

asked: Sep 10 '11 at 06:06 PM

Seen: 741 times

Last Updated: Sep 10 '11 at 06:23 PM