rabidus-test/Assets/BNG Framework/Scripts/Extras/ExtensionMethods.cs

22 lines
600 B
C#
Raw Permalink Normal View History

2023-07-24 16:38:13 +03:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BNG {
/// <summary>
/// Convenience methods you can use with VRIF
/// </summary>
public static class ExtensionMethods {
/// <summary>
/// Returns true if given key is held down. Calls "InputBridge.Instance.GetControllerBindingValue(binding)"
/// </summary>
/// <param name="binding"></param>
public static bool GetDown(this ControllerBinding binding) {
return InputBridge.Instance.GetControllerBindingValue(binding);
}
}
}