コード例 #1
0
    /// <summary>
    /// Initializes the variables needed by the editor.
    /// </summary>
    void InitializeWindow()
    {
        if (EditorApplication.isPlaying)
        {
            return;
        }

        backgroundLibrary.GenerateDictionary();
        characterLibrary.GenerateDictionary();
        dialogueLibrary.GenerateDictionary();

        if (hub == null)
        {
            hub = new DialogueHub(backgroundLibrary, characterLibrary, dialogueLibrary, dialogueValues);
        }
        if (dlw != null && daw == null)
        {
            daw = GetWindow <DialogueActionWindow>("Dialogue Editor New");
            daw.InitializeWindow(hub, this);
        }
        InitTextures();
        GenerateAreas();
    }
コード例 #2
0
 /// <summary>
 /// Initializes the variables needed by the editor.
 /// </summary>
 public void InitializeWindow(DialogueHub hubWindow, DialogueListWindow mainWindow)
 {
     listWindow = mainWindow;
     hub        = hubWindow;
     InitTextures();
 }