製作地下室地圖、Raw Input 整合後續修正
This commit is contained in:
1 parent
81d2a150c2
commit
23c311e905
191 files changed
+59056
-9911
No files matched your search
@@ -39,9 +39,6 @@ public class PlayerLook : MonoBehaviour
|
||||
// 平滑跟槍 : 這一幀要額外加上的滑鼠位移 (與滑鼠同單位),用完會歸零
|
||||
private Vector2 pendingAssistDelta;
|
||||
|
||||
// 動態靈敏度 : 乘在靈敏度上的倍率,1 = 不變
|
||||
[HideInInspector] public float sensitivityScale = 1f;
|
||||
|
||||
public void AddAssistDelta(Vector2 delta)
|
||||
{
|
||||
pendingAssistDelta += delta;
|
||||
@@ -96,8 +93,8 @@ public class PlayerLook : MonoBehaviour
|
||||
LastMouseDelta = mouseDelta;
|
||||
LastAssistDelta = pendingAssistDelta;
|
||||
|
||||
// 玩家輸入套用 (可被動態靈敏度改變) + 輔助位移
|
||||
Vector2 totalDelta = mouseDelta * sensitivityScale + pendingAssistDelta;
|
||||
// 玩家輸入 + 輔助位移
|
||||
Vector2 totalDelta = mouseDelta + pendingAssistDelta;
|
||||
pendingAssistDelta = Vector2.zero;
|
||||
|
||||
float degreesPerCount = DegreesPerCount * sensitivity;
|
||||
|
||||
Reference in new issue
Block a user