C# Class UnityPlatformer.DefaultInput

Keyboard, Touch and Wii Touch use CnControls [https://www.assetstore.unity3d.com/en/#!/content/15233] to enable touch you need to uncomment '\//#define UP_USE_CN_INPUT_MANAGER' at the top of this file\n Wii controls use WiimoteApi [https://github.com/Flafla2/Unity-Wiimote] to enable wiimote support you need to uncomment '\//#define UP_USE_WII_INPUT_MANAGER' at the top of this file
Inheritance: PlatformerInput
Afficher le fichier Open project: llafuente/unity-platformer

Méthodes publiques

Свойство Type Description
inputsMap List

Méthodes publiques

Méthode Description
GetAxisRaw ( ) : Vector2
GetAxisRawX ( ) : float
GetAxisRawY ( ) : float
IsActionDown ( string action ) : bool
IsActionHeld ( string action ) : bool
IsActionUp ( string action ) : bool
IsDownDown ( ) : bool
IsLeftDown ( ) : bool
IsRightDown ( ) : bool
IsUpDown ( ) : bool
Start ( ) : void
Update ( ) : void

Private Methods

Méthode Description
GetWiiButton ( WiiButtons btn ) : bool

Method Details

GetAxisRaw() public méthode

public GetAxisRaw ( ) : Vector2
Résultat Vector2

GetAxisRawX() public méthode

public GetAxisRawX ( ) : float
Résultat float

GetAxisRawY() public méthode

public GetAxisRawY ( ) : float
Résultat float

IsActionDown() public méthode

public IsActionDown ( string action ) : bool
action string
Résultat bool

IsActionHeld() public méthode

public IsActionHeld ( string action ) : bool
action string
Résultat bool

IsActionUp() public méthode

public IsActionUp ( string action ) : bool
action string
Résultat bool

IsDownDown() public méthode

public IsDownDown ( ) : bool
Résultat bool

IsLeftDown() public méthode

public IsLeftDown ( ) : bool
Résultat bool

IsRightDown() public méthode

public IsRightDown ( ) : bool
Résultat bool

IsUpDown() public méthode

public IsUpDown ( ) : bool
Résultat bool

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

inputsMap public_oe property

List of action - button/key mapping
public List inputsMap
Résultat List