C# Class PlayerMovementController, PuzzleGameProject

Inheritance: MonoBehaviour
Show file Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Public Properties

Property Type Description
GO_DOWN DirectionProperties,
GO_LEFT DirectionProperties,
GO_RIGHT DirectionProperties,
GO_UP DirectionProperties,
currentElement ElementObserver,
obstacleElement ElementObserver,
playerAssociated Player,

Private Methods

Method Description
CalculDemiLePlusProche ( float value ) : float
CheckJumpState ( ) : void
OnPlayerDirectionChanging ( DirectionProperties, dir ) : void

OnPlayerEndJump ( ) : void
OnPlayerJump ( ) : void
OnPlayerWin ( ) : void
TreatElement ( ElementObserver, elementObs ) : void
TreatObstacleElement ( ElementObserver, elementObs ) : void
TreatmentIfObstacle ( EffectTransformation, eTransf ) : void
Update ( ) : void

Called every frame, if the MonoBehaviour is enabled. Apply the effects of the encountered elements and moves the player.

Property Details

GO_DOWN public static property

public static DirectionProperties, GO_DOWN
return DirectionProperties,

GO_LEFT public static property

public static DirectionProperties, GO_LEFT
return DirectionProperties,

GO_RIGHT public static property

public static DirectionProperties, GO_RIGHT
return DirectionProperties,

GO_UP public static property

public static DirectionProperties, GO_UP
return DirectionProperties,

currentElement public property

ElementObserver observing all non-obstacle elements
public ElementObserver, currentElement
return ElementObserver,

obstacleElement public property

ElementObserver observing all obstacle elements
public ElementObserver, obstacleElement
return ElementObserver,

playerAssociated public property

Player associated to this PlayerMovementController.
public Player, playerAssociated
return Player,