C# Class KeyboardPlayerInput, Albatross

Inheritance: PlayerInput
Afficher le fichier Open project: xby2/Albatross Class Usage Examples

Méthodes publiques

Свойство Type Description
playerType KeyboardPlayerType

Méthodes publiques

Méthode Description
KeyboardPlayerInput ( KeyboardPlayerType _playerType ) : System

Register the keyboard as player input

getActionHold ( ) : bool
getActionPressDown ( ) : bool
getHorizontalAxis ( ) : float
getName ( ) : string
getVerticalAxis ( ) : float

Method Details

KeyboardPlayerInput() public méthode

Register the keyboard as player input
public KeyboardPlayerInput ( KeyboardPlayerType _playerType ) : System
_playerType KeyboardPlayerType /// Which keyboard buttons to register WASD uses W, A, S, and D buttons. /// ARROW uses right, left, down, and up buttons ///
Résultat System

getActionHold() public méthode

public getActionHold ( ) : bool
Résultat bool

getActionPressDown() public méthode

public getActionPressDown ( ) : bool
Résultat bool

getHorizontalAxis() public méthode

public getHorizontalAxis ( ) : float
Résultat float

getName() public méthode

public getName ( ) : string
Résultat string

getVerticalAxis() public méthode

public getVerticalAxis ( ) : float
Résultat float

Property Details

playerType public_oe property

public KeyboardPlayerType playerType
Résultat KeyboardPlayerType