Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (!shootParent.isPickup)
     { //Setting the "SightEquipped" parameter to true in the weapon's animator, in case the weapon has special animations for aiming with a sight equipped
         shootAnimator.SetBool(animBoolInt, true);
         if (shootParent.aiming && showImageForAim && shootParent.isADS)
         {
             shootParent.DisableRenderers();
             renderersDisabled = true;
             shootParent.playerProperties.ToggleScopeReticle(true, imageToShow);
         }
         else if (!shootParent.aiming && renderersDisabled)
         {
             shootParent.EnableRenderers();
             renderersDisabled = false;
             shootParent.playerProperties.ToggleScopeReticle(false, null);
         }
     }
 }