rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Actions/WaitKey.cs

16 lines
342 B
C#
Raw Normal View History

2023-08-22 15:41:12 +03:00
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))
{
}
}
}