Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnGUI () {
- if (gui_alert==true){
- GUI.Label(gui_alert_position,"ok!!!!",hit_desc_style);
- pause_gui();
- }
- }
- function pause_gui() {
- Debug.Log("iniziata: "+gui_alert);
- while (ttime<=5)
- {
- ttime=ttime+1;
- Debug.Log("tick "+ttime);
- yield WaitForSeconds(1);
- }
- ttime=0;
- gui_alert=false;
- Debug.Log("Iniziata: "+gui_alert);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement