Quantcast
Channel: Answers by "Pharaoh_"
Viewing all articles
Browse latest Browse all 54

Answer by Pharaoh_

$
0
0
Is there any reason why you play the animation so frequently? Instead, I would use OnCollisionEnter2D() to set the value to true and OnCollisionExit2D to set it to false. In each of these functions, play the respective animation. If you want it to keep playing, then set it wrap mode in the Inspector to Looping.

Viewing all articles
Browse latest Browse all 54

Trending Articles



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