Hello, I am coding a video game under Unity 3D and using c# I have a problem: I am opening a window into my game and when the player clicks on a rectangle into the window, that closes the window here is my code : Code (csharp): // Converted from UnityScript to C# at http://www.M2H.nl/files/js_to_c.php - by Mike Hergaarden // Do test the code! You usually need to change a few small bits. using UnityEngine; using System; using System.Data; using MySql.Data.MySqlClient; using System.Collections.Generic; public class Enn : MonoBehaviour { static Boolean WindowSwitch = false; void Start (){ WindowSwitch=true; } void Update (){ } void OnGUI () { if(WindowSwitch == true) { Rect windowRect = new Rect(150,150,1000,300); windowRect = GUI.Window (1, windowRect, setWindow, "Question"); } } void setWindow ( int windowID ){ if(windowID==1){ if(GUI.Label(new Rect(15,250,100,400), "moi")); { WindowSwitch=false; } } } } My windowSwitch== true works but when I click on "moi", the window is not closing Could you help me please? Thanks in advance