diff --git a/Example Project/Assets/Scripts/AnimationManager.cs b/Example Project/Assets/Scripts/AnimationManager.cs
index a05a27b..92ffcf8 100644
--- a/Example Project/Assets/Scripts/AnimationManager.cs
+++ b/Example Project/Assets/Scripts/AnimationManager.cs
@@ -40,7 +40,7 @@ public enum AnimationError {
/// Time we want to start the animation from.
/// Layer we find the given animation name on.
/// AnimationError, showing wheter and how playing the file failed.
- private AnimationError PlayAnimation(Animator animator, string newAnimation, float delayTime = 0.0f, float startTime = 0.0f, int layer = 0) {
+ public AnimationError PlayAnimation(Animator animator, string newAnimation, float delayTime = 0.0f, float startTime = 0.0f, int layer = 0) {
AnimationError message = AnimationError.OK;
// Fetch the current Animation clips information for the base layer.
diff --git a/Example Project/Assets/Scripts/MethodCalls.cs b/Example Project/Assets/Scripts/MethodCalls.cs
index 01ff4a6..49b6a9d 100644
--- a/Example Project/Assets/Scripts/MethodCalls.cs
+++ b/Example Project/Assets/Scripts/MethodCalls.cs
@@ -17,8 +17,8 @@ private void Start() {
}
public void PlayAnimationClicked() {
- AnimationManager.AninmationError error = am.PlayAnimation(animator, inputField.text);
- output.text = GetStringFromError(error);
+ AnimationManager.AnimationError err = am.PlayAnimation(animator, inputField.text);
+ output.text = GetStringFromError(err);
}
public void GetCurrentAnimationLengthClicked() {
@@ -26,20 +26,24 @@ public void GetCurrentAnimationLengthClicked() {
output.text = "Length of the currently playing animation in seconds: " + length;
}
- private string GetStringFromError(AninmationManager.AnimationError error) {
- switch (error) {
+ private string GetStringFromError(AnimationManager.AnimationError err) {
+ string warning = "";
+
+ switch (err) {
case AnimationManager.AnimationError.OK:
- // No Message
- return;
+ warning = "Succesfully executed playing animation.";
+ break;
case AnimationManager.AnimationError.ALREADY_PLAYING:
- // No Message
- return;
+ warning = "Method is already playing.";
+ break;
case AnimationManager.AnimationError.DOES_NOT_EXIST:
warning = "Given Animation Name does not exist on the given Animator.";
break;
default:
- warning = "Given AnimatonError State not defined.";
+ // Invalid AnimationManager.AnimationError argument.
break;
}
+
+ return warning;
}
}
diff --git a/Example Project/Packages/manifest.json b/Example Project/Packages/manifest.json
index 269f819..60bfd41 100644
--- a/Example Project/Packages/manifest.json
+++ b/Example Project/Packages/manifest.json
@@ -2,9 +2,9 @@
"dependencies": {
"com.unity.collab-proxy": "1.7.1",
"com.unity.ide.rider": "2.0.7",
- "com.unity.ide.visualstudio": "2.0.11",
- "com.unity.ide.vscode": "1.2.3",
- "com.unity.test-framework": "1.1.27",
+ "com.unity.ide.visualstudio": "2.0.12",
+ "com.unity.ide.vscode": "1.2.4",
+ "com.unity.test-framework": "1.1.30",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.4.8",
"com.unity.ugui": "1.0.0",
diff --git a/Example Project/Packages/packages-lock.json b/Example Project/Packages/packages-lock.json
index 6f39b82..3ba0e00 100644
--- a/Example Project/Packages/packages-lock.json
+++ b/Example Project/Packages/packages-lock.json
@@ -26,7 +26,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
- "version": "2.0.11",
+ "version": "2.0.12",
"depth": 0,
"source": "registry",
"dependencies": {
@@ -35,7 +35,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.vscode": {
- "version": "1.2.3",
+ "version": "1.2.4",
"depth": 0,
"source": "registry",
"dependencies": {},
@@ -49,7 +49,7 @@
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
- "version": "1.1.27",
+ "version": "1.1.30",
"depth": 0,
"source": "registry",
"dependencies": {
diff --git a/Example Project/ProjectSettings/EditorBuildSettings.asset b/Example Project/ProjectSettings/EditorBuildSettings.asset
index 0147887..93e7b16 100644
--- a/Example Project/ProjectSettings/EditorBuildSettings.asset
+++ b/Example Project/ProjectSettings/EditorBuildSettings.asset
@@ -4,5 +4,8 @@
EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
- m_Scenes: []
+ m_Scenes:
+ - enabled: 1
+ path: Assets/Scenes/Main.unity
+ guid: 9fc0d4010bbf28b4594072e72b8655ab
m_configObjects: {}