File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Example Project/Assets/Scripts Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ private void Start() {
1717 }
1818
1919 public void PlayAnimationClicked ( ) {
20- AninmationManager . AninmationError error = am . PlayAnimation ( animator , inputField . text ) ;
20+ AnimationManager . AninmationError error = am . PlayAnimation ( animator , inputField . text ) ;
2121 output . text = GetStringFromError ( error ) ;
2222 }
2323
@@ -28,13 +28,13 @@ public void GetCurrentAnimationLengthClicked() {
2828
2929 private string GetStringFromError ( AninmationManager . AnimationError error ) {
3030 switch ( error ) {
31- case AnimationError . OK :
31+ case AnimationManager . AnimationError . OK :
3232 // No Message
3333 return ;
34- case AnimationError . ALREADY_PLAYING :
34+ case AnimationManager . AnimationError . ALREADY_PLAYING :
3535 // No Message
3636 return ;
37- case AnimationError . DOES_NOT_EXIST :
37+ case AnimationManager . AnimationError . DOES_NOT_EXIST :
3838 warning = "Given Animation Name does not exist on the given Animator." ;
3939 break ;
4040 default :
You can’t perform that action at this time.
0 commit comments