C# Class PlayerWalk, ProjetDUT

Inheritance: MonoBehaviour
Show file Open project: lutrampal/ProjetDUT Class Usage Examples

Public Properties

Property Type Description
Anim Animator
height int
playerClips AudioClip[]
speed float
time int
width int

Public Methods

Method Description
FixedUpdate ( ) : void
Start ( ) : void
getLastInput ( ) : string
moveDown ( ) : void
moveLeft ( ) : void
moveRight ( ) : void
moveUp ( ) : void
playSound ( int clipNumber ) : void

Plays a sound.

Method Details

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

Start() public method

public Start ( ) : void
return void

getLastInput() public method

public getLastInput ( ) : string
return string

moveDown() public method

public moveDown ( ) : void
return void

moveLeft() public method

public moveLeft ( ) : void
return void

moveRight() public method

public moveRight ( ) : void
return void

moveUp() public method

public moveUp ( ) : void
return void

playSound() public method

Plays a sound.
public playSound ( int clipNumber ) : void
clipNumber int Index of the song in the Array of songs
return void

Property Details

Anim public property

public Animator Anim
return Animator

height public property

public int height
return int

playerClips public property

Array containing all the Exit's songs
public AudioClip[] playerClips
return AudioClip[]

speed public property

public float speed
return float

time public property

public int time
return int

width public property

public int width
return int