Quantcast
Viewing all articles
Browse latest Browse all 22

GUItexture did not disappear after 10 seconds

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

Viewing all articles
Browse latest Browse all 22

Trending Articles



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