added: camera framework for camera settings, camera settings change for grapple button #2
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user