C# Class PlayerMovementController, PuzzleGameProject

Inheritance: MonoBehaviour
ファイルを表示 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_oe static_oe property

public static DirectionProperties, GO_DOWN
return DirectionProperties,

GO_LEFT public_oe static_oe property

public static DirectionProperties, GO_LEFT
return DirectionProperties,

GO_RIGHT public_oe static_oe property

public static DirectionProperties, GO_RIGHT
return DirectionProperties,

GO_UP public_oe static_oe property

public static DirectionProperties, GO_UP
return DirectionProperties,

currentElement public_oe property

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

obstacleElement public_oe property

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

playerAssociated public_oe property

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