Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a659526b authored by Fabien Grzeskowiak's avatar Fabien Grzeskowiak
Browse files

minor fix tuto1

parent 67ab5078
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ public class AnimationController : MonoBehaviour ...@@ -106,7 +106,7 @@ public class AnimationController : MonoBehaviour
animationSpeed = 0.0f; animationSpeed = 0.0f;
if (_oldState != _defaultIdleAnimation) if (_oldState != _defaultIdleAnimation)
{ {
print("Switching to Idle Animation"); // print("Switching to Idle Animation");
_oldState = _defaultIdleAnimation; _oldState = _defaultIdleAnimation;
_objectAnimator.SetInteger("AnimationType", UnityEngine.Random.Range(1,4)); // 1, 2 or 3 _objectAnimator.SetInteger("AnimationType", UnityEngine.Random.Range(1,4)); // 1, 2 or 3
_objectAnimator.Play("Transition"); _objectAnimator.Play("Transition");
......
No preview for this file type
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment