added: initial input handling for grapple
This commit is contained in:
@@ -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