Example #1
0
 void Update()
 {
     if (isInteractingWithWeapon)
     {
         if (isShooting)
         {
             availableWeaponSlot.Fire();
         }
         availableWeaponSlot.RotateCrosshair(movePosition.x);
     }
     else if (isShooting)
     {
         crosshair.AimDirectional(movePosition.x, movePosition.y);
         repeatedShooter.Shoot(personalWeaponInfo);
     }
 }