public bool GetButton(String buttonName)
        {
            if (_externalButton.ContainsKey(buttonName))
            {
                return(_externalButton[buttonName]() || Input.GetButton(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)));
            }

            return(Input.GetButton(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)));
        }
 private bool GetAxisAsButton(String buttonName, bool neg = false)
 {
     if (!neg)
     {
         return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) > SENSIBILITY);
     }
     else
     {
         return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) < -SENSIBILITY);
     }
 }
Exemple #3
0
 public bool GetAxisAsButton(String buttonName, bool neg = false)
 {
     if (!neg)
     {
         return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) > 0.5);
     }
     else
     {
         return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) < -0.5);
     }
 }
 public float V1()
 {
     return(-Input.GetAxis(PlayerInputUtils.GetButtonNameFor(_V_1, _inputIndex)));
 }
Exemple #5
0
        // AXIS


        // DOWN
        public bool GetButtonDown(String buttonName)
        {
            return(Input.GetButtonDown(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)));
        }