title: Unity Show/Hide menu from screen
body: <p>i'm trying to show and hide a menu from a screen with mouse right click.
  For example, when the right click is clicked, a menu appears and when it's pressed again, the menu hides.</p>
  
  <pre><code>int flag = 1;
  void Update()
  {
          if (Input.GetMouseButton(1))
          {
              if(flag == 1)
              {
                  RadialMenuSpawn.ins.SpawnMenu(this); //Show it
                  flag = 0;
              }
  
              if(flag == 0)
              {
                  /* hide it */
                  flag = 1;
              }
          }
  }
  </code></pre>
  
  <p>Is there any command to hide that menu from the screen because it's copying itself?</p>