From d00e688098655fc0ade9b00d4ad9907e792b24b1 Mon Sep 17 00:00:00 2001 From: Fangh Date: Thu, 8 Feb 2024 21:54:06 +0100 Subject: [PATCH] feat(promptlistloader): can send one prompt from editor --- Assets/Scripts/PromptListLoader.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/PromptListLoader.cs b/Assets/Scripts/PromptListLoader.cs index d17c9eb..bbf7ba2 100644 --- a/Assets/Scripts/PromptListLoader.cs +++ b/Assets/Scripts/PromptListLoader.cs @@ -118,7 +118,6 @@ private void EraseFirestore(Action OnCleanComplete) /// /// Will add a prompt to the firestore /// - [ContextMenu("Add Prompt To Firestore")] private void AddPromptToFirestore(Prompt _prompt = null) { if (_prompt == null) @@ -138,6 +137,12 @@ private void AddPromptToFirestore(Prompt _prompt = null) }); } + [ContextMenu("Add Prompt To Firestore")] + private void AddPromptToFirestore() + { + AddPromptToFirestore(addPrompt); + } + /// /// ///