title: UI and unity position
body: <p>I have this problem, that I want to be able to click on a "tile" on the screen and then a pop-up menu should be shown just next to the tile. I can click on the tile and then a pop-up menu shows up but not where I want it.</p>
  
  <p>On the picture <a href="http://i.imgur.com/m1zccuY.png" rel="nofollow">here</a> I've clicked on the top left one.</p>
  
  <p>My code for placing the picture is as following:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class TowerMenu : MonoBehaviour 
  {
      bool showMenu = false;
      float x;
      float y;
      GUIStyle myStyle;
  
      public Texture2D[] towers;
  
      void OnGUI()
      {
          if(showMenu)
          {
              //Bear tower
              GUI.Button(new Rect(x + 10, y - 25, 50, 50), towers[0]);
              //Seal tower
              GUI.Button(new Rect(x + 10, y + 25, 50, 50), towers[1]);
          }
      }
  
      public void ShowMenu(Vector2 pos)
      {
          showMenu = true;
          x = pos.x;
          y = pos.y;
      }
  }
  </code></pre>
  
  <p>Hope anyone can help me :)</p>