Hi Tony,
I hope all is well, I'm trying to set up the skip button for both keyboard and joystick. However, what is happening is that one always seems to override the other.
For instance, below is the code I'm using to trigger this. However, I notice that the joystick overrides the keyboard in this example and if I were to switch them around (joystick above keyboard) then it has the opposite effect. I've tried using the || operator but I get the following error message. "Operator '||' cannot be applied to operands of type 'KeyCode' "
Code: Select all
var inputSettings = DialogueManager.displaySettings.inputSettings;
inputSettings.cancel.key = KeyCode.G;
inputSettings.cancelConversation.key = KeyCode.G;
inputSettings.cancel.key = KeyCode.JoystickButton3;
inputSettings.cancelConversation.key = KeyCode.JoystickButton3;
}
If you could shed some light on how to resolve this, I'd greatly appreciate it.
Thanks,
SB
