Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Get animation work

$
0
0
I want to make "shoot" animation being played each time only after bullet shot out. Here's my script: private var _animation : Animation; var Bullet : Transform; var Speed = 500; var spawnPoint : Transform; var Counter = Time.deltaTime; var RateOfFire = 0.250000; var target : GameObject; function Shoot() { yield WaitForSeconds(0.1); Counter += Time.deltaTime; if(RateOfFire

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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