void OnOpenMenu() { //Get the center of the megatile selection Region region = new Region(InputManager.use.resourceTileSelection.ToArray()); Vector3 center = Vector3.zero; region.GetCenter(out center); //Open the menu OpenMenu(center,center); }