Example #1
0
    protected override void Awake()
    {
        base.Awake();

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