Quantcast
Channel: Latest Questions by larrielyn
Viewing all articles
Browse latest Browse all 22

how to add time ? (how to show a guiTexture and hide it after some time?)

$
0
0
good day !! ..help please .. how to add time when the character destroy the object ..
function OnTriggerEnter (other : Collider) {
  Destroy(gameObject);
  gameObject.Find("balisong").GetComponent("GUITexture").enabled = true;
} 
-this is my code when i destroy the object. Where i place the code of adding time . and how? thank you so much COMMENTS POSTED AS ANSWERS AND MOVED HERE/DELETED (by aldonaletto): 1- thankyou ! i'll try it :)
2- how to disapper the guitexture after seconds. ? not the gameobject ..
3- how to disappear the GUITexture when the gameobject destroy? for example .. when the character destroy the object the guitexture will appear but after 5 seconds the guitexture will disappear .. thx ..!

Viewing all articles
Browse latest Browse all 22

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>