added: camera framework for camera settings, camera settings change for grapple button #2

Merged
tealtxgr merged 8 commits from player/grapple-feature-add into main 2025-07-15 15:55:59 +00:00
2 changed files with 39 additions and 0 deletions
Showing only changes of commit f84e8cfe5a - Show all commits

View File

@@ -58,6 +58,15 @@
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "Grapple",
"type": "Button",
"id": "00393a1c-cfdb-46f8-8e02-552382b53236",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
}
],
"bindings": [
@@ -236,6 +245,28 @@
"action": "Cancel Lock-On",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "62c22ef2-a01a-4fce-a688-9eb5fd35b9bc",
"path": "",
"interactions": "",
"processors": "",
"groups": "",
"action": "Grapple",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "3c93b098-1bd2-42c6-90d6-3eea7694acd0",
"path": "<Gamepad>/rightTrigger",
"interactions": "",
"processors": "",
"groups": ";Controller",
"action": "Grapple",
"isComposite": false,
"isPartOfComposite": false
}
]
}

View File

@@ -48,6 +48,14 @@ public class PlayerControls : MonoBehaviour{
public void OnCancelLockOn(){
GetComponent<LockOnManager>().RemoveLockOnTarget();
graph.SendEvent<string>("InputEvent", "CancelLockOn", null);
}
public void OnGrapple(InputInteractionContext context){
if (context.control.IsPressed()) {
graph.SendEvent<string>("InputEvent", "GrappleDown", null);
} else {
graph.SendEvent<string>("InputEvent", "GrappleUp", null);
}
}
}