|
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 }
(comments are locked)
|
|
@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!
(comments are locked)
|
