Quantcast
Channel: Questions in topic: "swimming"
Viewing all articles
Browse latest Browse all 107

Animation not Playing

$
0
0
Hello! I have a pair of animated hands. When I'm touching water than the swimming animation plays normaly but when I want to swim faster (I have an other aimation) the animation is not playing! Hereis my script: if(controller.velocity.magnitude > 0 && GetComponent(Swimming).swim == true){ animation.Play("Swimming"); if(Input.GetKey(KeyCode.LeftShift)) animation.Play("FastSwimming"); Also I have an other script for the speed change: if(swim == true) speed = swimSpeed; if(Input.GetKey(KeyCode.LeftShift)) speed = fastSwimSpeed; Is there a mistake? Please help me! :)

Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>