HELP !! my defense is on friday but my game does not totally work.
i destroy the object then GUItexture will appear but i want after 10 seconds the GUITexture will disappear. Please i need help ..
thank you so much.
function OnTriggerEnter (other : Collider) {
Destroy(gameObject);
gameObject.Find("balisong").GetComponent("GUITexture").enabled = true;
}
IEnumerator ShowGuiTexture(balisong, 10 )
{
if( balisong == null )
yield break;
GUITexture.enabled = true;
yield return new WaitForSeconds( 10);
GUITexture.enabled = false;
}
↧