public void SaveCreatorRoom() { if (SavedRoom) { GameController.RoomPressetList.RemoveAt(GameController.RoomPressetList.Count - 1); GameController.RoomPressetList.Add(GameController.CreatorRoomPresset); } else { GameController.RoomPressetList.Add(GameController.CreatorRoomPresset); SavedRoom = true; } ButtonCreation.ResetButtons(); }
// 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 = ""; }