public static ConfirmPopup Create() { ConfirmPopup window = ScriptableObject.CreateInstance <ConfirmPopup>(); window.position = new Rect(Screen.width / 2, Screen.height / 2, 200, 75); window.Show(); return(window); }
public void CreateNewMapData() { interactable = false; saveConfirmPopup.Show(() => { savePopup.Show(name => { SaveMapData(name); _data = new MapData(); tilemap.ClearAllTiles(); }, () => interactable = true); }, () => interactable = true); }
public void OnExitClick() { AudioController.Instance.PlayButtonClick(); confirmPopup.Show(); }