public void Action(CallbackContext cc) { if (cc.performed && myIO) { myIO.OnPlayerAction(Actor.SON); } }
public void MotherAction(CallbackContext cc) { if (cc.ReadValue <float>() == 1.0f && !actionButtonClicked) { actionButtonClicked = true; myIO?.OnPlayerAction(Actor.MOTHER); } else if (cc.ReadValue <float>() == 0.0f && actionButtonClicked) { actionButtonClicked = false; } }