Пример #1
0
 public static void StartADS()
 {
     if (!ADSPositionReached && WeaponSwitch.Wapens[WeaponSwitch.CurrentWeapon].Recoil == 0)
     {
         WeaponSwitch.Wapens[WeaponSwitch.CurrentWeapon].WeaponObject.transform.localPosition = Vector3.Slerp(WeaponSwitch.Wapens[WeaponSwitch.CurrentWeapon].WeaponObject.transform.localPosition, ADSPosition, Time.deltaTime * 25f);
         Camera.main.fieldOfView = Mathf.Lerp(Camera.main.fieldOfView, ADSFOV, Time.deltaTime * 25f);
         try
         {
             InterfaceScript.DisableCrosshair();
         }
         catch { }
     }
 }