C# Class PlayerMovementController, PuzzleGameProject

Inheritance: MonoBehaviour
Afficher le fichier Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Méthodes publiques

Свойство Type Description
GO_DOWN DirectionProperties,
GO_LEFT DirectionProperties,
GO_RIGHT DirectionProperties,
GO_UP DirectionProperties,
currentElement ElementObserver,
obstacleElement ElementObserver,
playerAssociated Player,

Private Methods

Méthode 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
Résultat DirectionProperties,

GO_LEFT public_oe static_oe property

public static DirectionProperties, GO_LEFT
Résultat DirectionProperties,

GO_RIGHT public_oe static_oe property

public static DirectionProperties, GO_RIGHT
Résultat DirectionProperties,

GO_UP public_oe static_oe property

public static DirectionProperties, GO_UP
Résultat DirectionProperties,

currentElement public_oe property

ElementObserver observing all non-obstacle elements
public ElementObserver, currentElement
Résultat ElementObserver,

obstacleElement public_oe property

ElementObserver observing all obstacle elements
public ElementObserver, obstacleElement
Résultat ElementObserver,

playerAssociated public_oe property

Player associated to this PlayerMovementController.
public Player, playerAssociated
Résultat Player,