Removed uneeded close buttons
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user