Skip to content

Commit

Permalink
Part 2: Jump and Moving Platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
adammyhre committed Jul 9, 2023
1 parent 8c83488 commit d5218d2
Show file tree
Hide file tree
Showing 14 changed files with 3,616 additions and 213 deletions.
11 changes: 11 additions & 0 deletions Assets/MyTools/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public static void CreateDefaultFolders() {
Refresh();
}

[MenuItem("Tools/Setup/Import My Favorite Assets")]
public static void ImportMyFavoriteAssets() {
Assets.ImportAsset("DOTween HOTween v2.unitypackage", "Demigiant/ScriptingAnimation");
}

static class Folders {
public static void CreateDefault(string root, params string[] folders) {
var fullpath = Combine(Application.dataPath, root);
Expand All @@ -23,4 +28,10 @@ public static void CreateDefault(string root, params string[] folders) {
}
}
}

static class Assets {
public static void ImportAsset(string asset, string subfolder, string folder = "C:/Users/adam/AppData/Roaming/Unity/Asset Store-5.x") {
ImportPackage(Combine(folder, subfolder, asset), false);
}
}
}
Loading

0 comments on commit d5218d2

Please sign in to comment.