Exemplo n.º 1
0
 /// <summary>
 /// Equivalent to Input's GetButton/GetKey function.
 /// </summary>
 /// <param name="buttonHash">The hash of the action you want to get.</param>
 protected bool GetButton(int buttonHash)
 {
     return(PlayerInput.GetButton(buttonHash));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Equivalent to Input's GetButton/GetKey function.
 /// </summary>
 /// <param name="buttonName">The button name you want to get.</param>
 protected bool GetButton(string buttonName)
 {
     return(PlayerInput.GetButton(buttonName));
 }