// Copyright (c) Pixel Crushers. All rights reserved.
usingUnityEngine;
namespacePixelCrushers.DialogueSystem
{
/// <summary>
/// Allows toggling of the quest log window using a key or button,
/// or by calling ToggleQuestLogWindow.
/// </summary>
[AddComponentMenu("")]// Use wrapper.
publicclassQuestLogWindowHotkey:MonoBehaviour
{
[Tooltip("Toggle the quest log window when this key is pressed.")]
publicKeyCodekey=KeyCode.J;
[Tooltip("Toggle the quest log window when this input button is presed.")]
publicstringbuttonName=string.Empty;
[Tooltip("(Optional) Use this quest log window. If unassigned, will automatically find quest log window in scene. If you assign a window, assign a scene instance, not an uninstantiated prefab.")]