added: initial input handling for grapple

This commit is contained in:
Chris
2025-07-09 14:46:16 -04:00
parent 7641b83b6a
commit f84e8cfe5a
2 changed files with 39 additions and 0 deletions

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);
}
}
}