Controller inputSettings.cancel.key problem.
Posted: Fri Jan 13, 2023 4:30 am
Hi,
I'm using
if (Gamepad.all.Count > 0) DialogueManager.instance.displaySettings.inputSettings.cancel.key = KeyCode.JoystickButton2;
else DialogueManager.instance.displaySettings.inputSettings.cancel.key = KeyCode.F;
to show next conversation or end.
Keyboard works very well.
So when conversation ends or start, it calls OnConversationEnded and OnConversationStarted.
But when I use Controller and finish conversation, it calls OnConversationEnded and Call OnConversationStarted again.
So conversation starts again.
It is same when i start conversation too. it calls OnConversationStarted and OnConversationEnded too.
Only it happens when i use Controller.
What is problem??
Thank you.
I'm using
if (Gamepad.all.Count > 0) DialogueManager.instance.displaySettings.inputSettings.cancel.key = KeyCode.JoystickButton2;
else DialogueManager.instance.displaySettings.inputSettings.cancel.key = KeyCode.F;
to show next conversation or end.
Keyboard works very well.
So when conversation ends or start, it calls OnConversationEnded and OnConversationStarted.
But when I use Controller and finish conversation, it calls OnConversationEnded and Call OnConversationStarted again.
So conversation starts again.
It is same when i start conversation too. it calls OnConversationStarted and OnConversationEnded too.
Only it happens when i use Controller.
What is problem??
Thank you.