Skip to content

Commit 044eb1e

Browse files
authored
Update to new enum constants
1 parent 7bc12d1 commit 044eb1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Example Project/Assets/Scripts/AnimationManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public enum AnimationError {
4141
/// <param name="layer">Layer we find the given Animation Name on.</param>
4242
/// <returns>AnimationError with all possible Error States of the function.</returns>
4343
private AnimationError PlayAnimation(Animator animator, string newAnimation, float delayTime = 0.0f, float startTime = 0.0f, int layer = 0) {
44-
AnimationError message = AnimationError.Success;
44+
AnimationError message = AnimationError.OK;
4545

4646
// Fetch the current Animation clips information for the base layer.
4747
List<AnimatorClipInfo> currentClipInfoList = new List<AnimatorClipInfo>();
@@ -60,11 +60,11 @@ private AnimationError PlayAnimation(Animator animator, string newAnimation, fl
6060

6161
// Check if we are already playing the newAnimation.
6262
if (string.Equals(currentAnimaton, newAnimation)) {
63-
message = AnimationError.AlreadyPlaying;
63+
message = AnimationError.ALREADY_PLAYING;
6464
}
6565
// Check if the given Animator actually has the newAnimation at all.
6666
else if (!AnimationExists(animator, newAnimation)) {
67-
message = AnimationError.DoesNotExist;
67+
message = AnimationError.DOES_NOT_EXIST;
6868
}
6969
// Play the newAnimation at the given startTime.
7070
else {

0 commit comments

Comments
 (0)