Remove auto rotate in the normal script and add F as a shoot key along with left click

This commit is contained in:
Lncvrt committed 2025-10-08 11:30:32 -07:00
1 parent 5f430f79b1
commit 4372f7862f
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ public class GunHandler : MonoBehaviour
transform.rotation = Quaternion.Euler(0f, 0f, clamped);
if (Keyboard.current.leftShiftKey.wasPressedThisFrame || Keyboard.current.rightShiftKey.wasPressedThisFrame)
if (Keyboard.current.leftShiftKey.wasPressedThisFrame || Keyboard.current.rightShiftKey.wasPressedThisFrame || Keyboard.current.fKey.wasPressedThisFrame || Mouse.current.leftButton.wasPressedThisFrame)
{
Vector3 offset = new(0.6932073f, 0.352302f, 0f);
if (flipped) offset.x = -offset.x;