protected override void Awake() { base.Awake(); _buttonDownEvent = new ButtonDownEvent(); _controller = Input.GetJoystickNames().Length != 0 && Input.GetJoystickNames()[0] != string.Empty; }
public virtual void OnButtonDown(InputEventArgs e) { ButtonDownEvent?.Invoke(this, e); }