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
}
↧