How can I set my spawned object set rotation when spawned ?
I cant do transform.Rotate(a,b,c) on boomStars Start() function.
The rotation must be set on its spawner.
Instantiate(boomStars,transform.position, transform.rotation = 0);
Instantiate(boomStars,transform.position, transform.rotation = 45);
Instantiate(boomStars,transform.position, transform.rotation = 90);
Instantiate(boomStars,transform.position, transform.rotation = 125);
Instantiate(boomStars,transform.position, transform.rotation = 180);
Instantiate(boomStars,transform.position, transform.rotation = 225);
Instantiate(boomStars,transform.position, transform.rotation = 270);
Instantiate(boomStars,transform.position, transform.rotation = 315);