Esempio n. 1
0
 void resetRotation()
 {
     muzzle.setRotation(Quaternion.Euler(new Vector3(0, 0, muzzle.getZRotation())));
 }
 void rotateMuzzle()
 {
     muzzle.setRotation(Quaternion.Euler(0, 0, muzzle.getRotation().eulerAngles.z + angleDiff));
     muzzle.setZRotation(muzzle.getZRotation() + angleDiff);
 }