Cleaned up window base code
This commit is contained in:
@@ -26,20 +26,6 @@ namespace InterfaceOff
|
||||
string json = File.ReadAllText(path);
|
||||
|
||||
Trivia = JsonUtility.FromJson<TriviaSet>(json);
|
||||
|
||||
string longest = "";
|
||||
int length = 0;
|
||||
|
||||
foreach (TriviaQuestion question in Trivia.questions)
|
||||
{
|
||||
if (length < question.question.Length)
|
||||
{
|
||||
length = question.question.Length;
|
||||
longest = question.question;
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log(longest);
|
||||
}
|
||||
|
||||
public override void OnWindowInstantiation()
|
||||
|
||||
Reference in New Issue
Block a user