コード例 #1
0
    public static void CreateQuestsInSelectedFolder()
    {
        Object selectedObject = Selection.activeObject;

        string enemyCreationPath = selectedObject.GetFolderPath();

        QuestsCreationWindow.OpenWindow(enemyCreationPath);
    }
コード例 #2
0
    public static void OpenWindow(string folderPath)
    {
        QuestsCreationWindow window = QuestsCreationWindow.GetWindow(typeof(QuestsCreationWindow)) as QuestsCreationWindow;

        window.Init(folderPath);
    }