Esempio n. 1
0
 void Update()
 {
     if (playerScript.alive)
     {
         enter = true;
         if (weaponDetectorScript.pushing || hammerScript.smacking || hammerScript.smashing || hammerScript.cocking)
         {
             enter = false;
         }
         if (enter)
         {
             transform.rotation   = Quaternion.Euler(0f, 0f, quantizeAnglesScript.HalfTrackJacket(controller.armAng));
             shieldTrans.rotation = transform.rotation;
             hammerTrans.rotation = Quaternion.Euler(0f, 0f, transform.rotation.eulerAngles.z - 90f);
         }
     }
 }