1.2.0
This commit is contained in:
1 parent
c3bb8d1a9e
commit
fd0312270b
26 files changed
+3310
-87
No files matched your search
@@ -72,7 +72,8 @@ public class HitscanWeapon : MonoBehaviour
|
||||
UpdateModelKick();
|
||||
|
||||
// 選單開著 (滑鼠沒鎖定) 時不能開槍
|
||||
if (Cursor.lockState != CursorLockMode.Locked) return;
|
||||
// 這一幀標為暫停時也不行 : 按「繼續」的那一幀滑鼠已經鎖定,但這一幀不記錄,開槍會有 shot 卻沒有對應的幀
|
||||
if (Cursor.lockState != CursorLockMode.Locked || PauseMenu.IsPaused) return;
|
||||
|
||||
if (Keyboard.current != null && Keyboard.current.rKey.wasPressedThisFrame)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user