Quantcast
Channel: Answers for "How to move direction of particle(s) emitted by ParticleSystem Shuriken"
Viewing all articles
Browse latest Browse all 4

Answer by Legend of Hibiki

$
0
0
It's more easy if you create a prefab. and use this code in your player var shuriken : GameObject; var throwShuriken = false; var throwShurikenTime : float = 0; var throwShurikenNumber : float = 0; function Update() ///key pressed {throwShuriken=true;} if(throwShuriken){ throwShurikenTime + = Time.deltaTime; if(throwShurikenTime>=0.5){ throwShurikenNumber +=1; clone = Instantiate(shuriken, transform.position, transform.rotation); if(throwShurikenNumber>=10){ throwShuriken=false; } } } }

Viewing all articles
Browse latest Browse all 4

Trending Articles



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