public void GetCenter(out float x, out float z) { x = left+width*0.5f; z = bottom+height*0.5f; }
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); }