Joskaia ebla v jopu
This commit is contained in:
@ -53,11 +53,13 @@ public class scr_CharacterController : MonoBehaviour
|
||||
|
||||
[HideInInspector]
|
||||
public bool isSprinting;
|
||||
public bool isWalking;
|
||||
|
||||
private Vector3 newMovementSpeed;
|
||||
private Vector3 newMovementSpeedVelocity;
|
||||
|
||||
[Header("Weapon")]
|
||||
//[Header("Weapon")]
|
||||
[HideInInspector]
|
||||
public scr_WeaponController currentWeapon;
|
||||
|
||||
public float weaponAnimationSpeed;
|
||||
@ -89,11 +91,11 @@ public class scr_CharacterController : MonoBehaviour
|
||||
characterController = GetComponent<CharacterController>();
|
||||
|
||||
cameraHeight = cameraHolder.localPosition.y;
|
||||
|
||||
/*
|
||||
if (currentWeapon)
|
||||
{
|
||||
currentWeapon.Initialise(this);
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
@ -141,11 +143,14 @@ public class scr_CharacterController : MonoBehaviour
|
||||
|
||||
private void CalculateMovement()
|
||||
{
|
||||
if (input_Movement.y <= 0.2f)
|
||||
if (input_Movement.y <= 0.3f)
|
||||
{
|
||||
isSprinting = false;
|
||||
}
|
||||
|
||||
if (input_Movement.y <= 0.2f)
|
||||
{
|
||||
isWalking = false;
|
||||
}
|
||||
var verticalSpeed = playerSettings.WalkingForwardSpeed;
|
||||
var horizontalSpeed = playerSettings.WalkingStrafeSpeed;
|
||||
|
||||
|
Reference in New Issue
Block a user