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