-
-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: place ResourceManager classes under SDK directory
- Loading branch information
Showing
26 changed files
with
531 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
Assets/MediaPipe/Examples/Scripts/AsyncOperationAwaiter.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
Assets/MediaPipe/Examples/Scripts/ResourceManager/AssetBundleLoader.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using UnityEngine; | ||
|
||
public sealed class AssetBundleLoader : MonoBehaviour { | ||
Mediapipe.AssetBundleManager resourceManager; | ||
|
||
void Start() { | ||
resourceManager = new Mediapipe.AssetBundleManager(); | ||
} | ||
|
||
void PrepareAsset(string name, string uniqueKey) { | ||
resourceManager.PrepareAsset(name, uniqueKey); | ||
} | ||
|
||
void PrepareAsset(string name) { | ||
resourceManager.PrepareAsset(name, name); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ipe/SDK/Scripts/Util/ResourceUtil.cs.meta → ...ResourceManager/AssetBundleLoader.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
102 changes: 0 additions & 102 deletions
102
Assets/MediaPipe/Examples/Scripts/ResourceManager/AssetBundleManager.cs
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetLoader.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using UnityEngine; | ||
|
||
public sealed class LocalAssetLoader : MonoBehaviour { | ||
Mediapipe.LocalAssetManager resourceManager; | ||
|
||
void Start() { | ||
resourceManager = new Mediapipe.LocalAssetManager(); | ||
} | ||
|
||
void PrepareAsset(string name, string uniqueKey) { | ||
resourceManager.PrepareAsset(name, uniqueKey); | ||
} | ||
|
||
void PrepareAsset(string name) { | ||
resourceManager.PrepareAsset(name, name); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetLoader.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetManager.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using System; | ||
|
||
namespace Mediapipe { | ||
public class InternalException : ApplicationException { | ||
public class InternalException : Exception { | ||
public InternalException(string message) : base(message) {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using System; | ||
|
||
namespace Mediapipe { | ||
public class MediaPipeException : ApplicationException { | ||
public class MediaPipeException : Exception { | ||
public MediaPipeException(string message) : base(message) {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using System; | ||
|
||
namespace Mediapipe { | ||
public class MediaPipePluginException : ApplicationException { | ||
public class MediaPipePluginException : Exception { | ||
public MediaPipePluginException(string message) : base(message) {} | ||
} | ||
} |
Oops, something went wrong.