This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Actions/WaitKey.cs

16 lines
342 B
C#

using UnityEngine;
namespace QFSW.QC.Actions
{
/// <summary>
/// Waits until the given key is pressed.
/// </summary>
public class WaitKey : WaitUntil
{
/// <param name="key">The key to wait for.</param>
public WaitKey(KeyCode key) : base(() => InputHelper.GetKeyDown(key))
{
}
}
}