Reuse scripts instead of copypaste code

This commit is contained in:
2025-09-05 20:24:44 -07:00
parent a426a26f09
commit 7a5cc54d35
11 changed files with 214 additions and 150 deletions

View File

@@ -55,7 +55,6 @@ public class ChatroomMenu : MonoBehaviour
messageInputField.interactable = false;
ShowStatus("Warning: You are not logged in. Please log in to send messages.");
}
backButton.onClick.AddListener(async () => await SceneManager.LoadSceneAsync("MainMenu"));
sendButton.onClick.AddListener(async () => await HandleMessageSubmit());
downButton.onClick.AddListener(() => StartCoroutine(ScrollToBottom()));
messageInputField.textComponent.textWrappingMode = TextWrappingModes.Normal;