Exemple #1
0
    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);
        }
Exemple #3
0
 public void OnExitClick()
 {
     AudioController.Instance.PlayButtonClick();
     confirmPopup.Show();
 }