Double Click ?

I have a problem when i want to hide a menu or click again on one object.
I have a button that if i click on it message box appears. but when i want to hide it by click on the same button is not work.

public void pressed()
    {
        mini.enabled = true;
    }

    public void pressedagain()
       
    {
      // mini.enabled = false;
      // or
      // if (mini = true)
        {
            mini.enabled = false;

can anyone help me with this.PLEASE :frowning:

You can use one function to do this. Try :

public void Pressed(){
mini.enabled = !mini.enabled;
}
1 Like

thank you man.
Its working now :slight_smile:

Glad I could help.