|
|
|
|
|
|
|
|
|
|
[SerializeField] private InputReader _inputReader = default; |
|
|
|
[Header("Listening on channels")] |
|
|
|
[SerializeField] private VoidEventChannelSO _onSceneReady = default; |
|
|
|
|
|
|
|
[Header("Dialogue Events")] |
|
|
|
[SerializeField] private DialogueLineChannelSO _openUIDialogueEvent = default; |
|
|
|
[SerializeField] private VoidEventChannelSO _closeUIDialogueEvent = default; |
|
|
|
|
|
|
{ |
|
|
|
_setInteractionEvent.OnEventRaised += SetInteractionPanel; |
|
|
|
} |
|
|
|
if (_onSceneReady != null) |
|
|
|
{ |
|
|
|
_onSceneReady.OnEventRaised += ResetUI; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void ResetUI() |
|
|
|
{ |
|
|
|
CloseInventoryScreen(); |
|
|
|
SetInteractionPanel(false, InteractionType.None); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void OpenUIDialogue(LocalizedString dialogueLine, ActorSO actor) |
|
|
|
{ |
|
|
|