Remove auto rotate in the normal script and add F as a shoot key along with left click
This commit is contained in:
2 files changed
+2
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user