void OnSave() { if (File.Exists(m_savePath)) { UIManager.instance.ShowModal("Save", "A file with that name already exists, do you want to overwrite it?", new string[] { "Yes", "No" }, (i) => { if (i == 0) { m_meshManager.Save(m_savePath); gameObject.SetActive(false); } }); } else { m_meshManager.Save(m_savePath); gameObject.SetActive(false); } }