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