movement update

This commit is contained in:
2026-06-02 10:00:42 +07:00
parent 1490ada744
commit b381bcef32
10 changed files with 850 additions and 677 deletions

View File

@@ -616,8 +616,8 @@ namespace Invector.vCharacterController
// var Y = lockCameraInput ? 0f : rotateCameraYInput.GetAxis();
// var X = lockCameraInput ? 0f : rotateCameraXInput.GetAxis();
var Y = lockCameraInput ? 0f : inputReader.LookInput.y;
var X = lockCameraInput ? 0f : inputReader.LookInput.x;
var Y = lockCameraInput ? 0f : inputReader.LookInput.y * tpCamera.currentState.yMouseSensitivity;
var X = lockCameraInput ? 0f : inputReader.LookInput.x * tpCamera.currentState.xMouseSensitivity;
if (invertCameraInputHorizontal) X *= -1;
if (invertCameraInputVertical) Y *= -1;

View File

@@ -155,7 +155,7 @@ namespace Invector.vCharacterController
}
// isBlocking = blockInput.GetButton() && cc.currentStamina > 0 && !cc.customAction && !isAttacking;
isBlocking = inputReader.IsBlockHeld && cc.currentStamina > 0 && !cc.customAction && !isAttacking;
isBlocking = inputReader != null && inputReader.IsBlockHeld && cc.currentStamina > 0 && !cc.customAction && !isAttacking;
}
/// <summary>

View File

@@ -678,7 +678,7 @@ namespace Invector.vCharacterController
// {
// _aimTiming = 0f;
// }
if(inputReader.IsSprintHeld && _aimTiming > 0f)
if(inputReader != null && inputReader.IsSprintHeld && _aimTiming > 0f)
{
_aimTiming = 0f;
}

View File

@@ -32,13 +32,13 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: db48e0e5caa2999469a4f3aa249c188b, type: 3}
m_Texture: {fileID: 2800000, guid: 1ba5636bfdd687347966f548dbf5a0bc, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats: []
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 8, g: 0, b: 0, a: 1}
- _Vector0: {r: 1, g: 1, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1