コード例 #1
0
 public static void StopADS()
 {
     if (!HipFirePositionReached && WeaponSwitch.Wapens[WeaponSwitch.CurrentWeapon].Recoil == 0)
     {
         WeaponSwitch.Wapens[WeaponSwitch.CurrentWeapon].WeaponObject.transform.localPosition = Vector3.Slerp(WeaponSwitch.Wapens[WeaponSwitch.CurrentWeapon].WeaponObject.transform.localPosition, HipFirePosition, Time.deltaTime * 25f);
         Camera.main.fieldOfView = Mathf.Lerp(Camera.main.fieldOfView, NormalFOV, Time.deltaTime * 25f);
         try
         {
             InterfaceScript.EnableCrosshair();
         }
         catch { }
     }
 }