public void OpenEditMenu() { EditMenuScript = (EditMenu)gameObject.GetComponent(typeof(EditMenu)); MenuUI.SetActive(false); EditMenuScript.OpenMenu(originalPie); }