Hi,
I’m creating an educational project and I need when I click on GameOpject to Show GUI texture “contains some information” and freeze all controls and movement for the first person until the next click “anywhere” to resume everything and hide GUI texture.
I used this Script :
#pragma strict
var diary : GUITexture;
function Start (){
diary.enabled=false;
}
function OnMouseDown() {
diary.enabled=true;
}
function OnMouseUp() {
diary.enabled=false;
}
From here:
Thanks to robertbu
It’s useful but it’s not enough for me,
Sorry I’m not programmer and I need your help
…