コード例 #1
0
ファイル: HUDNavigation.cs プロジェクト: Secuii/LaserGame
 //Delete menu
 public void DeleteRoomButton()
 {
     if (GameController.ButtonRoomPresset != null)
     {
         PopupYesNokWindow.SetActive(true);
         ChangePopupYesNoText("Are you sure you want to delete this room ?");
         PopupName = "delete";
     }
     else
     {
         PopupBackWindow.SetActive(true);
         ChangePopupBackText("You need to select a room first");
     }
 }
コード例 #2
0
ファイル: HUDNavigation.cs プロジェクト: Secuii/LaserGame
        public void PopupNoConfirmation()
        {
            switch (PopupName)
            {
            case "duplicate":
                PopupYesNokWindow.SetActive(false);
                break;

            case "restore":
                PopupYesNokWindow.SetActive(false);
                break;

            case "delete":
                GameController.ButtonRoomPresset = null;
                PopupYesNokWindow.SetActive(false);
                break;
            }
            PopupName = "";
        }
コード例 #3
0
ファイル: HUDNavigation.cs プロジェクト: Secuii/LaserGame
        // DUPLICATE OR RESTORE YES NO

        public void PopupYesConfirmation()
        {
            switch (PopupName)
            {
            case "duplicate":
                GameController.RoomPressetList.Add(GameController.ButtonRoomPresset);
                GameController.ButtonRoomPresset = null;
                ButtonCreation.ResetButtons();
                PopupYesNokWindow.SetActive(false);
                break;

            case "restore":
                ButtonCreation.UndoRoomButtonList();
                PopupYesNokWindow.SetActive(false);
                break;

            case "delete":
                ButtonCreation.DeleteButtons(GameController.ButtonRoomPresset);
                PopupYesNokWindow.SetActive(false);
                break;
            }
            PopupName = "";
        }
コード例 #4
0
ファイル: HUDNavigation.cs プロジェクト: Secuii/LaserGame
 //Restore list
 public void RestoreListTodDefault()
 {
     PopupYesNokWindow.SetActive(true);
     ChangePopupYesNoText("Do you want to restore the list?");
     PopupName = "restore";
 }