public static void CreateQuestsInSelectedFolder() { Object selectedObject = Selection.activeObject; string enemyCreationPath = selectedObject.GetFolderPath(); QuestsCreationWindow.OpenWindow(enemyCreationPath); }
public static void OpenWindow(string folderPath) { QuestsCreationWindow window = QuestsCreationWindow.GetWindow(typeof(QuestsCreationWindow)) as QuestsCreationWindow; window.Init(folderPath); }