GameObject bullet = Instantiate(bulletPrefab, firePoint.position, firePoint.rotation);
Rigidbody2D brb = bullet.GetComponent();
brb.AddForce(firePoint.up * bulletForce, ForceMode2D.Impulse);
fireRB.rotation += 45;
The script for my Shoot function. I want the object to shoot, then rotate 45 degrees, but the rotate part does not work. Everything else seems to be working fine, just not the rotate.
Update: The first few times it shoots, it does not rotate, but after shooting 5 or so times, it starts rotating again.