Removed uneeded close buttons

This commit is contained in:
Pasha Bibko
2026-01-20 15:59:13 +00:00
parent 7307a64e77
commit fc629e45b6
3 changed files with 19 additions and 12 deletions

View File

@@ -46,6 +46,9 @@ namespace InterfaceOff
protected override void OnWindowInstantiation()
{
/* Destroys the Window Close button to stop accidental clicking */
Destroy(Components.CloseButtonRectTransform.gameObject);
/* Fetches a random question and sets it as the title */
TriviaQuestion question = Trivia.questions[Random.Range(0, Trivia.questions.Length)];
Components.InfoText.text = question.question;