using UnityEngine; using UnityEngine.UI; namespace ProjectX { /// /// Binds any of the keys specified to a virtual button on CrossPlatformInput. /// [RequireComponent(typeof(Button))] public class KeyButton : MonoBehaviour { public string[] axis; public KeyCode[] keys; public Button button { get; private set; } void Awake() { button = GetComponent