コード例 #1
0
    /// <summary>
    /// Display the content based on which format we are in
    /// </summary>
    private void OnGUI()
    {
        WindowInstance = this;

        if (CurrentFormatType == FormatType.QuizMe)
        {
            Format1.OnGUI();
        }
        else if (CurrentFormatType == FormatType.TrueOrFalse)
        {
            Format2.OnGUI();
        }
        else if (CurrentFormatType == FormatType.TriviaKingdom)
        {
            Format3.OnGUI();
        }
    }
コード例 #2
0
 public static void OpenWindow()
 {
     WindowInstance = GetWindow <XMLSheetWindow>(true, "QuizApp XML Editor");
     WindowInstance.Show();
     WindowInstance.minSize = new Vector2(1295, 200);
 }